Skip to content

Commit 95765f6

Browse files
committed
format test
1 parent 1ee9bf4 commit 95765f6

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Lib/test/test_concurrent_futures/executor.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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
{

Modules/_opcode-488016f1.o.tmp

Whitespace-only changes.

0 commit comments

Comments
 (0)