mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
bpo-45019: Silence a warning in test_ctypes. (gh-28362)
This was missed in PR gh-28319. https://bugs.python.org/issue45019
This commit is contained in:
parent
51056b40e7
commit
4b30aaa0c9
1 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
|||
A testcase which accesses *values* in a dll.
|
||||
"""
|
||||
|
||||
import imp
|
||||
import _imp
|
||||
import importlib.util
|
||||
import unittest
|
||||
import sys
|
||||
|
|
@ -81,7 +81,7 @@ class struct_frozen(Structure):
|
|||
self.assertIsNone(spec.submodule_search_locations)
|
||||
|
||||
with import_helper.frozen_modules():
|
||||
expected = imp._frozen_module_names()
|
||||
expected = _imp._frozen_module_names()
|
||||
self.maxDiff = None
|
||||
self.assertEqual(modules, expected, "PyImport_FrozenModules example "
|
||||
"in Doc/library/ctypes.rst may be out of date")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue