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 f59c749 commit 3dc2461Copy full SHA for 3dc2461
Lib/test/test_concurrent_futures/executor.py
@@ -69,14 +69,7 @@ def test_map_exception(self):
69
70
# a failed future should not be captured in its
71
# future._exception.__traceback__ to avoid a reference cycle
72
- self.assertFalse(
73
- [
74
- 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
- )
+ self.assertListEqual(gc.get_referrers(error), [])
80
81
@support.requires_resource('walltime')
82
def test_map_timeout(self):
0 commit comments