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 bd97f81 commit 61ad88dCopy full SHA for 61ad88d
tests/test_message.py
@@ -37,6 +37,7 @@ def await_gc(gc_key):
37
which can take some time to receive its DECREF message.
38
"""
39
deadline = time.monotonic() + 3
40
+ gc.collect()
41
while time.monotonic() < deadline:
42
if gc_key in zmq_gc.refs:
43
time.sleep(0.05)
@@ -56,6 +57,11 @@ def tearDown(self):
56
57
super().tearDown()
58
for i in range(3):
59
gc.collect()
60
+
61
+ deadline = time.monotonic() + 3
62
+ while zmq_gc.refs and time.monotonic() < deadline:
63
+ time.sleep(0.05)
64
65
# make sure we left no refs
66
assert not zmq_gc.refs
67
0 commit comments