Skip to content

Commit

Permalink
Update Lib/test/support/__init__.py
Browse files Browse the repository at this point in the history
Co-authored-by: Erlend E. Aasland <[email protected]>
  • Loading branch information
encukou and erlend-aasland authored Aug 16, 2022
1 parent df49186 commit 4b946d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib/test/support/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1074,9 +1074,9 @@ def requires_limited_api(test):
try:
import _testcapi
except ImportError:
return unittest.skipIf(True, 'needs _testcapi module')(test)
return unittest.skipIf(
not _testcapi.LIMITED_API_AVAILABLE, 'needs Limited API support')(test)
return unittest.skip('needs _testcapi module')(test)
return unittest.skipUnless(
_testcapi.LIMITED_API_AVAILABLE, 'needs Limited API support')(test)


def _filter_suite(suite, pred):
Expand Down

0 comments on commit 4b946d4

Please sign in to comment.