From 151dd4d8ca3b686983584881eb159e1a72d82179 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Fri, 10 Oct 2025 22:56:21 +1100 Subject: [PATCH] tests(mm): windows CI issue --- tests/app/services/model_install/test_model_install.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/app/services/model_install/test_model_install.py b/tests/app/services/model_install/test_model_install.py index af835561d3..d19eb95a8c 100644 --- a/tests/app/services/model_install/test_model_install.py +++ b/tests/app/services/model_install/test_model_install.py @@ -2,6 +2,7 @@ Test the model installer """ +import gc import platform import uuid from pathlib import Path @@ -220,6 +221,8 @@ def test_delete_install( model_record = store.get_model(key) assert (mm2_app_config.models_path / model_record.path).exists() assert not embedding_file.exists() + # ensure file handles are released on Windows + gc.collect() mm2_installer.delete(key) # after deletion, installed copy should not exist assert not (mm2_app_config.models_path / model_record.path).exists()