Skip to content

Commit 799953a

Browse files
committed
Use pytest.gc_collect() instead of gc.collect().
1 parent 9fb634e commit 799953a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_consume.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import gc
1+
import pytest
22

33

44
def test_consume_argument(capture):
@@ -36,7 +36,7 @@ def test_consume_argument(capture):
3636
del filt
3737
del box_1
3838
del box_8
39-
gc.collect()
39+
pytest.gc_collect()
4040
assert capture == "Filter destroyed."
4141

4242
assert Box.get_num_boxes() == 1 # 1 box is leaked, and we can't do anything

0 commit comments

Comments
 (0)