Skip to content

Commit

Permalink
fix test that relied on slow garbage collection (#903)
Browse files Browse the repository at this point in the history
Co-authored-by: Çağtay Fabry <cagtay.fabry@bam.de>
  • Loading branch information
braingram and CagtayFabry authored Jan 5, 2024
1 parent 66a9ce4 commit ad4b8dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion weldx/tests/asdf_tests/test_weldx_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,8 @@ def get_mem_info():
# pytest increases memory a bit, but not as much as our large array would
# occupy in memory.
assert diff <= large_array.nbytes * 1.1, diff / 1024**2
assert np.all(WeldxFile(fn)["x"] == large_array)
with WeldxFile(fn) as wf:
assert np.all(wf["x"] == large_array)

@staticmethod
@pytest.mark.parametrize("mode", ("r", "rw"))
Expand Down

0 comments on commit ad4b8dc

Please sign in to comment.