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 79d65e3 commit 308036aCopy full SHA for 308036a
1 file changed
Lib/test/test_crossinterp.py
@@ -7,7 +7,7 @@
7
import warnings
8
9
from test import support
10
-from test.support import import_helper, swap_attr
+from test.support import import_helper
11
12
_testinternalcapi = import_helper.import_module('_testinternalcapi')
13
_interpreters = import_helper.import_module('_interpreters')
@@ -1499,7 +1499,7 @@ class CaptureExceptionTests(unittest.TestCase):
1499
# Regression test for https://github.com/python/cpython/issues/143377.
1500
1501
def capture_with_formatter(self, exc, formatter):
1502
- with swap_attr(traceback.TracebackException, "format", formatter):
+ with support.swap_attr(traceback.TracebackException, "format", formatter):
1503
return _interpreters.capture_exception(exc)
1504
1505
def test_capture_exception(self):
0 commit comments