summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sys.py
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-04-11 08:38:37 (GMT)
committerGitHub <noreply@github.com>2023-04-11 08:38:37 (GMT)
commit78b763f63032a7185c0905c319ead9e9b35787b6 (patch)
tree065fe97b6d301d4ad35303f4bd5a347f9ecba9c7 /Lib/test/test_sys.py
parent8026cda10ccd3cbc7f7ff84dc6970266512961e4 (diff)
downloadcpython-78b763f63032a7185c0905c319ead9e9b35787b6.zip
cpython-78b763f63032a7185c0905c319ead9e9b35787b6.tar.gz
cpython-78b763f63032a7185c0905c319ead9e9b35787b6.tar.bz2
gh-103176: sys._current_exceptions() returns mapping to exception instances instead of exc_info tuples (#103177)
Diffstat (limited to 'Lib/test/test_sys.py')
-rw-r--r--Lib/test/test_sys.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
index d7456d6..890ffbf 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -532,13 +532,13 @@ class SysModuleTest(unittest.TestCase):
main_id = threading.get_ident()
self.assertIn(main_id, d)
self.assertIn(thread_id, d)
- self.assertEqual((None, None, None), d.pop(main_id))
+ self.assertEqual(None, d.pop(main_id))
# Verify that the captured thread frame is blocked in g456, called
# from f123. This is a little tricky, since various bits of
# threading.py are also in the thread's call stack.
- exc_type, exc_value, exc_tb = d.pop(thread_id)
- stack = traceback.extract_stack(exc_tb.tb_frame)
+ exc_value = d.pop(thread_id)
+ stack = traceback.extract_stack(exc_value.__traceback__.tb_frame)
for i, (filename, lineno, funcname, sourceline) in enumerate(stack):
if funcname == "f123":
break