Closed
Description
Pytest 3.10 doesn't correctly parse minversion correctly. I have
[tool:pytest]
minversion = 3.6
in setup.cfg and see ERROR: setup.cfg:16: requires pytest-3.6, actual pytest-3.10.0'
Changing 3.6 to 3.06 fixes the problem, but this isn't consistent versioning.
Should correctly pass if if LooseVersion accepts the strings.
from distutils.version import LooseVersion
LooseVersion('3.10') > LooseVersion('3.6')
Out[3]: True
Here's a quick checklist in what to include:
- Include a detailed description of the bug or suggestion
-
pip list
of the virtual environment you are using - pytest and operating system versions
- Minimal example if possible