Skip to content

Commit

Permalink
Regression: test_weakref_cache
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky committed Mar 31, 2022
1 parent 2ff681c commit c7af2d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions distributed/tests/test_spill.py
@@ -1,5 +1,6 @@
from __future__ import annotations

import gc
import logging
import os
import uuid
Expand Down Expand Up @@ -337,6 +338,9 @@ def test_weakref_cache(tmpdir, cls, expect_cached, size):
# the same id as a deleted one
id_x = x.id
del x
# Surprisingly, even on CPython this is needed to ensure that the object is garbage
# collected, even if there are no obvious circular references going on
gc.collect()

if size < 100:
buf["y"]
Expand Down

0 comments on commit c7af2d4

Please sign in to comment.