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 e48d0e0 commit 99850b8Copy full SHA for 99850b8
Lib/test/test_concurrent_futures/executor.py
@@ -69,11 +69,12 @@ def test_map_exception(self):
69
70
# a failed future must not be captured in its
71
# future._exception.__traceback__ to avoid a reference cycle
72
- self.assertTrue(
73
- all(
74
- not isinstance(referrer, futures.Future)
+ self.assertFalse(
+ [
+ referrer
75
for referrer in gc.get_referrers(error)
76
- ),
+ if isinstance(referrer, futures.Future)
77
+ ],
78
msg="none of the referrers should be a Future",
79
)
80
0 commit comments