8000 Update Lib/test/support/__init__.py · python/cpython@4b946d4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4b946d4

Browse files
Update Lib/test/support/__init__.py
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
1 parent df49186 commit 4b946d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/support/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,9 +1074,9 @@ def requires_limited_api(test):
10741074
try:
10751075
72B2 import _testcapi
10761076
except ImportError:
1077-
return unittest.skipIf(True, 'needs _testcapi module')(test)
1078-
return unittest.skipIf(
1079-
not _testcapi.LIMITED_API_AVAILABLE, 'needs Limited API support')(test)
1077+
return unittest.skip('needs _testcapi module')(test)
1078+
return unittest.skipUnless(
1079+
_testcapi.LIMITED_API_AVAILABLE, 'needs Limited API support')(test)
10801080

10811081

10821082
def _filter_suite(suite, pred):

0 commit comments

Comments
 (0)
0