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 51056b4 commit 4b30aaaCopy full SHA for 4b30aaa
Lib/ctypes/test/test_values.py
@@ -2,7 +2,7 @@
2
A testcase which accesses *values* in a dll.
3
"""
4
5
-import imp
+import _imp
6
import importlib.util
7
import unittest
8
import sys
@@ -81,7 +81,7 @@ class struct_frozen(Structure):
81
self.assertIsNone(spec.submodule_search_locations)
82
83
with import_helper.frozen_modules():
84
- expected = imp._frozen_module_names()
+ expected = _imp._frozen_module_names()
85
self.maxDiff = None
86
self.assertEqual(modules, expected, "PyImport_FrozenModules example "
87
"in Doc/library/ctypes.rst may be out of date")
0 commit comments