Also need to delete class instance as well as function on class under Python 3 for weak function wrapper on instance method.
This commit is contained in:
@@ -99,6 +99,7 @@ class TestWeakFunctionProxy(unittest.TestCase):
|
||||
|
||||
self.assertEqual(proxy(1, 2), (1, 2))
|
||||
|
||||
del c
|
||||
del Class.function
|
||||
gc.collect()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user