Skip to content

Commit ada6140

Browse files
committed
fix access to exception
1 parent a438301 commit ada6140

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_concurrent_futures/executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def test_map_exception(self):
7979
var: val
8080
for var, val in tb.tb_frame.f_locals.items()
8181
if isinstance(val, Exception)
82-
or (isinstance(val, futures.Future) and val.exception())
82+
or (isinstance(val, futures.Future) and val._exception)
8383
},
8484
msg=f"traceback frames should not contain any variables referring to an Exception or a failed Future",
8585
)

0 commit comments

Comments
 (0)