We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc3a9cb commit 151dd4dCopy full SHA for 151dd4d
tests/app/services/model_install/test_model_install.py
@@ -2,6 +2,7 @@
2
Test the model installer
3
"""
4
5
+import gc
6
import platform
7
import uuid
8
from pathlib import Path
@@ -220,6 +221,8 @@ def test_delete_install(
220
221
model_record = store.get_model(key)
222
assert (mm2_app_config.models_path / model_record.path).exists()
223
assert not embedding_file.exists()
224
+ # ensure file handles are released on Windows
225
+ gc.collect()
226
mm2_installer.delete(key)
227
# after deletion, installed copy should not exist
228
assert not (mm2_app_config.models_path / model_record.path).exists()
0 commit comments