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.
sleeping_retry
test_free_reference
1 parent 729ec5b commit afffd97Copy full SHA for afffd97
Lib/test/test_concurrent_futures/executor.py
@@ -105,4 +105,7 @@ def test_free_reference(self):
105
wr = weakref.ref(obj)
106
del obj
107
support.gc_collect() # For PyPy or other GCs.
108
- self.assertIsNone(wr())
+
109
+ for _ in support.sleeping_retry(support.SHORT_TIMEOUT):
110
+ if wr() is None:
111
+ break
0 commit comments