Message342751
The commit cbe72d842646ded2454784679231e3d1e6252e72 is a good example:
deadline = time.monotonic() + 60
t = 0.1
while time.monotonic() < deadline:
time.sleep(t)
t = min(t*2, 5)
try:
smm = shared_memory.SharedMemory(name, create=False)
except FileNotFoundError:
break
else:
raise AssertionError("A SharedMemory segment was leaked after"
" a process was abruptly terminated.")
It would be nice to convert this code pattern into an helper function in test.support. It's common to have to wait for something in tests. |
|
Date |
User |
Action |
Args |
2019-05-17 18:21:48 | vstinner | set | recipients:
+ vstinner |
2019-05-17 18:21:48 | vstinner | set | messageid: <1558117308.95.0.715352595892.issue36950@roundup.psfhosted.org> |
2019-05-17 18:21:48 | vstinner | link | issue36950 messages |
2019-05-17 18:21:48 | vstinner | create | |
|