Skip to content

Commit cb85b87

Browse files
committed
Make Ruff happy
1 parent b2cbe7f commit cb85b87

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Lib/test/audit-tests.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"""
77

88
import contextlib
9-
import importlib.machinery
109
import os
1110
import sys
1211
import unittest.mock
@@ -701,7 +700,7 @@ def test_import_module():
701700
)
702701

703702
def test_builtin__import__():
704-
import importlib # noqa: F401
703+
import importlib.machinery # noqa: F401
705704

706705
with TestHook() as hook:
707706
__import__("importlib")
@@ -727,7 +726,7 @@ def test_builtin__import__():
727726
)
728727

729728
def test_import_statement():
730-
import importlib # noqa: F401
729+
import importlib.machinery # noqa: F401
731730
# Set __spec__.parent so relative imports work
732731
spec = importlib.machinery.ModuleSpec("test", None, is_package=True)
733732
with swap_item(globals(), "__spec__", spec):

0 commit comments

Comments
 (0)