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 b2cbe7f commit cb85b87Copy full SHA for cb85b87
Lib/test/audit-tests.py
@@ -6,7 +6,6 @@
6
"""
7
8
import contextlib
9
-import importlib.machinery
10
import os
11
import sys
12
import unittest.mock
@@ -701,7 +700,7 @@ def test_import_module():
701
700
)
702
703
def test_builtin__import__():
704
- import importlib # noqa: F401
+ import importlib.machinery # noqa: F401
705
706
with TestHook() as hook:
707
__import__("importlib")
@@ -727,7 +726,7 @@ def test_builtin__import__():
727
726
728
729
def test_import_statement():
730
731
# Set __spec__.parent so relative imports work
732
spec = importlib.machinery.ModuleSpec("test", None, is_package=True)
733
with swap_item(globals(), "__spec__", spec):
0 commit comments