Skip to content

Commit

Permalink
fix test that relied on slow garbage collection
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Jan 2, 2024
1 parent bb213a7 commit 068177b
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 068177b

Please sign in to comment.