Skip to content

Commit c02cd6f

Browse files
Fixup some test.support helpers
1 parent 88c6739 commit c02cd6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/support/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1707,7 +1707,7 @@ def run_in_subinterp(code):
17071707
try:
17081708
import _testcapi
17091709
except ImportError:
1710-
raise SkipTest("requires _testcapi")
1710+
raise unittest.SkipTest("requires _testcapi")
17111711
return _testcapi.run_in_subinterp(code)
17121712

17131713

@@ -1720,7 +1720,7 @@ def run_in_subinterp_with_config(code, *, own_gil=None, **config):
17201720
try:
17211721
import _testinternalcapi
17221722
except ImportError:
1723-
raise SkipTest("requires _testinternalcapi")
1723+
raise unittest.SkipTest("requires _testinternalcapi")
17241724
if own_gil is not None:
17251725
assert 'gil' not in config, (own_gil, config)
17261726
config['gil'] = 2 if own_gil else 1

0 commit comments

Comments
 (0)