Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 31e19a7

Browse files
Fix test_embed
1 parent 13c4829 commit 31e19a7

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

Lib/test/support/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ def has_no_debug_ranges():
508508
try:
509509
import _testinternalcapi
510510
except ImportError:
511-
raise unittest.SkipTest("_testinternalcapi required")
511+
return unittest.skip("_testinternalcapi required")
512512
config = _testinternalcapi.get_config()
513513
return not bool(config['code_debug_ranges'])
514514

Lib/test/test_embed.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,6 @@ def test_simple_initialization_api(self):
359359
self.assertEqual(out, 'Finalized\n' * INIT_LOOPS)
360360

361361
@support.requires_specialization
362-
@unittest.skipIf(_testinternalcapi is None, "requires _testinternalcapi")
363362
def test_specialized_static_code_gets_unspecialized_at_Py_FINALIZE(self):
364363
# https://github.com/python/cpython/issues/92031
365364

0 commit comments

Comments
 (0)