Skip to content

Commit e082ce2

Browse files
committed
remove gc.collect
1 parent 3474a15 commit e082ce2

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

tests/test_container.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,9 +1153,6 @@ def test_get_objects_stream_closes(temp_container, generate_random_data):
11531153
when it goes out of scope - so I add also the test that, inside the loop, at most one more file is open.
11541154
The final check seems to always pass even if I forget to do close some file.
11551155
"""
1156-
import gc
1157-
gc.collect()
1158-
11591156
data = generate_random_data()
11601157
# Store
11611158
obj_md5s = _add_objects_loose_loop(temp_container, data)
@@ -1280,13 +1277,6 @@ def test_get_objects_meta_doesnt_open(
12801277
temp_container, generate_random_data
12811278
): # pylint: disable=invalid-name
12821279
"""Test that get_objects_meta does not open any file."""
1283-
# TEMPORARY FIX: As described in issue aiida-team/aiida-core/issues/6739
1284-
# the container does not properly close its connection so we have to
1285-
# enforce the garbage collector to delete unerferenced resources. This
1286-
# should be fixed with PR #179
1287-
import gc
1288-
gc.collect()
1289-
12901280
data = generate_random_data()
12911281
# Store
12921282
obj_md5s = _add_objects_loose_loop(temp_container, data)

0 commit comments

Comments
 (0)