Skip to content

Commit 4b30aaa

Browse files
bpo-45019: Silence a warning in test_ctypes. (gh-28362)
This was missed in PR gh-28319. https://bugs.python.org/issue45019
1 parent 51056b4 commit 4b30aaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/ctypes/test/test_values.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
A testcase which accesses *values* in a dll.
33
"""
44

5-
import imp
5+
import _imp
66
import importlib.util
77
import unittest
88
import sys
@@ -81,7 +81,7 @@ class struct_frozen(Structure):
8181
self.assertIsNone(spec.submodule_search_locations)
8282

8383
with import_helper.frozen_modules():
84-
expected = imp._frozen_module_names()
84+
expected = _imp._frozen_module_names()
8585
self.maxDiff = None
8686
self.assertEqual(modules, expected, "PyImport_FrozenModules example "
8787
"in Doc/library/ctypes.rst may be out of date")

0 commit comments

Comments
 (0)