From dab7fc2f218e4715e6adbf559dfab4912be7f548 Mon Sep 17 00:00:00 2001 From: Graham Dumpleton Date: Tue, 8 Oct 2024 09:42:54 +1100 Subject: [PATCH] Try and clear references so GC runs for tests. --- tests/test_weak_function_proxy.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_weak_function_proxy.py b/tests/test_weak_function_proxy.py index 2babe95..33ec962 100644 --- a/tests/test_weak_function_proxy.py +++ b/tests/test_weak_function_proxy.py @@ -145,6 +145,7 @@ def callback(proxy): self.assertEqual(proxy(1, 2), (1, 2)) + Class.function = None Class = None gc.collect() @@ -166,6 +167,7 @@ def callback(proxy): self.assertEqual(proxy(1, 2), (1, 2)) + Class.function = None Class = None gc.collect()