Skip to content

Commit

Permalink
Refine test_getitem_slice_gc
Browse files Browse the repository at this point in the history
Apart from fixing a spurious flake8 warning, this strengthens the test.
  • Loading branch information
bmerry committed Jul 4, 2023
1 parent f42ed76 commit 5276c95
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_recv_chunk_stream_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5276c95

Please sign in to comment.