We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dedfb8c commit 3fcafb5Copy full SHA for 3fcafb5
1 file changed
Lib/test/support/__init__.py
@@ -546,11 +546,9 @@ def suppress_immortalization(suppress=True):
546
yield # no-op
547
return
548
549
- try:
550
- import _testinternalcapi
551
- except ImportError:
552
- raise unittest.SkipTest("requires _testinternalcapi") from None
+ from .import_helper import import_module
553
+ _testinternalcapi = import_module("_testinternalcapi")
554
_testinternalcapi.suppress_immortalization(True)
555
try:
556
yield
0 commit comments