File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 5353from .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
You can’t perform that action at this time.
0 commit comments