File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Lib/test/test_concurrent_futures Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -57,24 +57,25 @@ def test_map_exception(self):
5757 self .assertEqual (i .__next__ (), (0 , 1 ))
5858 self .assertEqual (i .__next__ (), (0 , 1 ))
5959
60- error = None
60+ exception = None
6161 try :
6262 next (i )
6363 except Exception as e :
64- error = e
64+ exception = e
6565 self .assertTrue (
66- isinstance (error , ZeroDivisionError ),
66+ isinstance (exception , ZeroDivisionError ),
6767 msg = "next should raise a ZeroDivisionError" ,
6868 )
6969
7070 # free-threading builds need this pause on Ubuntu (ARM) and Windows
7171 time .sleep (1 )
72+
7273 self .assertFalse (
73- gc .get_referrers (error ),
74+ gc .get_referrers (exception ),
7475 msg = "the exception should not have any referrers" ,
7576 )
7677
77- tb = error .__traceback__
78+ tb = exception .__traceback__
7879 while (tb := tb .tb_next ):
7980 self .assertFalse (
8081 {
You can’t perform that action at this time.
0 commit comments