From 2753abb7a184f13a169de0ac111eb8bef80a2c1e Mon Sep 17 00:00:00 2001 From: willGraham01 <1willgraham@gmail.com> Date: Tue, 6 Feb 2024 11:03:11 +0000 Subject: [PATCH] try attempting garbage collector to run at end of test --- tests/core/test_integration/test_detection.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/core/test_integration/test_detection.py b/tests/core/test_integration/test_detection.py index f7dffdc0..a2e9bc9b 100644 --- a/tests/core/test_integration/test_detection.py +++ b/tests/core/test_integration/test_detection.py @@ -1,3 +1,4 @@ +import gc import os from math import isclose @@ -107,6 +108,9 @@ def test_detection_full( num_cells_validation, num_cells_test, abs_tol=DETECTION_TOLERANCE ) + # Force explicit memory cleanup + gc.collect() + def test_detection_small_planes( signal_array,