Skip to content

Commit 1c3d01a

Browse files
committed
switch to assertTrue(all(...))
1 parent 19edced commit 1c3d01a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_concurrent_futures/executor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ def test_map_exception(self):
6969

7070
# a failed future must not be captured in its
7171
# future._exception.__traceback__ to avoid a reference cycle
72-
self.assertFalse(
73-
any(
74-
isinstance(referrer, futures.Future)
72+
self.assertTrue(
73+
all(
74+
not isinstance(referrer, futures.Future)
7575
for referrer in gc.get_referrers(error)
7676
)
7777
)

0 commit comments

Comments
 (0)