From 361f0fae446cb7a7b685e5a7e140d165ab4149c8 Mon Sep 17 00:00:00 2001 From: Ash Vardanian <1983160+ashvardanian@users.noreply.github.com> Date: Wed, 23 Aug 2023 21:58:32 +0400 Subject: [PATCH] Fix: Close file descriptor before removing --- python/scripts/test_index.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/scripts/test_index.py b/python/scripts/test_index.py index e35ad0cf..46d4606e 100644 --- a/python/scripts/test_index.py +++ b/python/scripts/test_index.py @@ -155,6 +155,7 @@ def test_index_save_load_restore_copy(ndim, quantization, batch_size): assert len(copied_index) == len(index) assert np.allclose(np.vstack(copied_index.get(keys)), np.vstack(index.get(keys))) + index.reset() os.remove("tmp.usearch")