summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_optimizer.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_optimizer.py b/Lib/test/test_optimizer.py
index b56bf3c..c8554c4 100644
--- a/Lib/test/test_optimizer.py
+++ b/Lib/test/test_optimizer.py
@@ -1,6 +1,9 @@
-import _testinternalcapi
import unittest
import types
+from test.support import import_helper
+
+
+_testinternalcapi = import_helper.import_module("_testinternalcapi")
class TestRareEventCounters(unittest.TestCase):