From 1ca75a0a55eee602a15321c2c40363603d3da6b9 Mon Sep 17 00:00:00 2001 From: Graham Dumpleton Date: Wed, 2 Oct 2013 14:00:21 +1000 Subject: [PATCH] Also need to delete class instance as well as function on class under Python 3 for weak function wrapper on instance method. --- tests/test_weak_function_proxy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_weak_function_proxy.py b/tests/test_weak_function_proxy.py index 9535b45..0f5bd09 100644 --- a/tests/test_weak_function_proxy.py +++ b/tests/test_weak_function_proxy.py @@ -99,6 +99,7 @@ class TestWeakFunctionProxy(unittest.TestCase): self.assertEqual(proxy(1, 2), (1, 2)) + del c del Class.function gc.collect()