3 Answers
- python -m pytest , or.
- py.test-<version> if your alternative Python and pytest are installed with system package manager, or.
- if your alternative Python has been installed with pyenv , switch with pyenv to that version and make sure you have pytest installed for it. Then you can just run pytest .
What is latest version of pytest?
pytest 6.0. 0rc1 (2020-07-08)
Which version of Python is pytest using?
Thanks to the python_requires setuptools option, Python 2.7 and Python 3.4 users using a modern pip version will install the last pytest 4.6. X version automatically even if 5.0 or later versions are available on PyPI.