Skip to content

BUG: Pytest 3.10 doesn't parse minversion correctly #4306

Closed
@bashtage

Description

@bashtage

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: criticalgrave problem or usability issue that affects lots of userstype: bugproblem that needs to be addressedtype: regressionindicates a problem that was introduced in a release which was working previously

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions