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

Skip to content

Commit f8931ad

Browse files
authored
gh-115142: Skip test_optimizer if _testinternalcapi module is not available (GH-115175)
1 parent 31633f4 commit f8931ad

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Lib/test/test_optimizer.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
import _testinternalcapi
21
import unittest
32
import types
3+
from test.support import import_helper
4+
5+
6+
_testinternalcapi = import_helper.import_module("_testinternalcapi")
47

58

69
class TestRareEventCounters(unittest.TestCase):

0 commit comments

Comments
 (0)