Development environment: pytest version conflict

Followed the dev env setup instructions in the docs and got VersionConflict for pytest:

(mopidy) aj@aj-XPS-L412Z:~/mopidy-dev/mopidy$ pytest -f
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/", line 859, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (pytest 2.8.2 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('pytest>=3.0.0'))

Resolved this by updating the global pytest:

aj@aj-XPS-L412Z:~/mopidy-dev/mopidy$ sudo pip2 install -U pytest

But should this be necessary? We are running in the virtualenv were we have installed all the requirements.

See also this post, fix for the docs tests.