It should use from _pytest import __version__ instead of from _pytest._version import version
https://github.com/pytest-dev/pytest/blob/master/src/_pytest/assertion/rewrite.py#L23
I can put a PR up for this in a few weeks, unless anyone else wants to roll it into their other changes