File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 77import warnings
88
99from 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 ):
You can’t perform that action at this time.
0 commit comments