Skip to content

Commit 333437a

Browse files
Fix skip message in tests (#1401)
Previously: "Skipped: Needs Python > 3.7. Current version is 3.9.10.final.0."
1 parent b196941 commit 333437a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

astroid/test_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ def check_require_version(f):
4848

4949
@functools.wraps(f)
5050
def new_f(*args, **kwargs):
51-
if minver != "0.0.0":
51+
if current <= min_version:
5252
pytest.skip(f"Needs Python > {minver}. Current version is {version}.")
53-
elif maxver != "4.0.0":
53+
elif current > max_version:
5454
pytest.skip(f"Needs Python <= {maxver}. Current version is {version}.")
5555

5656
return new_f

0 commit comments

Comments
 (0)