Skip to content

Commit ca140f2

Browse files
committed
Remove PyPy helper logic
1 parent d48f721 commit ca140f2

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

sqlalchemy_mptt/tests/__init__.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@
5353
from .cases.initialize import Initialize
5454

5555

56-
def failures_expected_on(*, sqlalchemy_versions=[], python_versions=[], interpreters=[]):
56+
def failures_expected_on(*, sqlalchemy_versions=[], python_versions=[]):
5757
"""
5858
Decorator to mark tests that are expected to fail on specific versions of
59-
SQLAlchemy, Python, or specific interpreters.
59+
SQLAlchemy and/or Python.
6060
61-
If a parameter is not provided, it is assumed that the failure is expected on all versions or interpreters.
61+
If a parameter is not provided, it is assumed that the failure is expected on all versions.
6262
If more than one parameter is provided, it is assumed that the failure is expected on all combinations of those parameters.
6363
"""
6464
def decorator(test_method):
@@ -68,9 +68,6 @@ def decorator(test_method):
6868
if python_versions:
6969
if not any(sys.version.startswith(v) for v in python_versions):
7070
return test_method
71-
if interpreters:
72-
if not any(sys.implementation.name == v for v in interpreters):
73-
return test_method
7471
# If we reach here, it means the test is expected to fail
7572
return unittest.expectedFailure(test_method)
7673
return decorator

0 commit comments

Comments
 (0)