Skip to content

Commit

Permalink
Add comment to with-pass
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikmakait committed May 24, 2022
1 parent c0313cc commit 1974e26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions distributed/tests/test_failed_workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ async def test_forgotten_futures_dont_clean_up_new_futures(c, s, a, b):
await c.restart()
y = c.submit(inc, 1)
del x

# Ensure that the profiler has stopped and released all references to x so that it can be garbage-collected
with profile.lock:
pass
await asyncio.sleep(0.1)
Expand Down
2 changes: 2 additions & 0 deletions distributed/tests/test_spill.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@ def test_weakref_cache(tmpdir, cls, expect_cached, size):
# the same id as a deleted one
id_x = x.id
del x

# Ensure that the profiler has stopped and released all references to x so that it can be garbage-collected
with profile.lock:
pass

Expand Down

0 comments on commit 1974e26

Please sign in to comment.