Skip to content

DeprecationWarning for pytest <7 is emitted on 0.20 with pytest >= 7 #430

Closed
@flaeppe

Description

@flaeppe

Seems that #420 adds a check for:

if getattr(pytest, "__version_tuple__", (0, 0, 0) < (7,)):
    ...

Although that module has no __version_tuple__ attribute, so the fallback value is used:

python -c "import pytest; pytest.__version_tuple__"

Raises:

AttributeError: module pytest has no attribute __version_tuple__. Did you mean: 'version_tuple'?

$ pytest --version
>>> pytest 7.1.3

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions