From 18bb702182e6962c1b5e4eef96b65b8996d3ec8a Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 24 Aug 2014 18:02:15 -0500 Subject: fix some test_weakref tests to not rely on ref-counting (closes #22267) --- Lib/test/test_weakref.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_weakref.py b/Lib/test/test_weakref.py index cccb515..0a59120 100644 --- a/Lib/test/test_weakref.py +++ b/Lib/test/test_weakref.py @@ -1317,6 +1317,7 @@ class MappingTestCase(TestBase): yield Object(v), v finally: it = None # should commit all removals + gc.collect() self.check_weak_destroy_and_mutate_while_iterating(dict, testcontext) def test_weak_values_destroy_while_iterating(self): @@ -1339,6 +1340,7 @@ class MappingTestCase(TestBase): yield k, Object(k) finally: it = None # should commit all removals + gc.collect() self.check_weak_destroy_and_mutate_while_iterating(dict, testcontext) def test_make_weak_keyed_dict_from_dict(self): -- cgit v0.12