Skip to content

Commit 308036a

Browse files
committed
fixup! remove unused import
1 parent 79d65e3 commit 308036a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_crossinterp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import warnings
88

99
from test import support
10-
from test.support import import_helper, swap_attr
10+
from test.support import import_helper
1111

1212
_testinternalcapi = import_helper.import_module('_testinternalcapi')
1313
_interpreters = import_helper.import_module('_interpreters')
@@ -1499,7 +1499,7 @@ class CaptureExceptionTests(unittest.TestCase):
14991499
# Regression test for https://github.com/python/cpython/issues/143377.
15001500

15011501
def capture_with_formatter(self, exc, formatter):
1502-
with swap_attr(traceback.TracebackException, "format", formatter):
1502+
with support.swap_attr(traceback.TracebackException, "format", formatter):
15031503
return _interpreters.capture_exception(exc)
15041504

15051505
def test_capture_exception(self):

0 commit comments

Comments
 (0)