diff --git a/tests/test_recv_chunk_stream_group.py b/tests/test_recv_chunk_stream_group.py index c8d6b89aa..884462ced 100644 --- a/tests/test_recv_chunk_stream_group.py +++ b/tests/test_recv_chunk_stream_group.py @@ -144,6 +144,12 @@ def test_getitem_slice_gc(self): gc.collect() assert group_weak() is not None + # Now delete the things that are keeping it alive + streams.clear() + for i in range(5): + gc.collect() + assert group_weak() is None + def test_iter(self): group, streams = self.make_group(5) assert list(group) == streams