Skip to content

Commit

Permalink
Try and clear references so GC runs for tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamDumpleton committed Oct 7, 2024
1 parent c13dbf3 commit dab7fc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_weak_function_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ def callback(proxy):

self.assertEqual(proxy(1, 2), (1, 2))

Class.function = None
Class = None
gc.collect()

Expand All @@ -166,6 +167,7 @@ def callback(proxy):

self.assertEqual(proxy(1, 2), (1, 2))

Class.function = None
Class = None
gc.collect()

Expand Down

0 comments on commit dab7fc2

Please sign in to comment.