From: Benjamin Peterson Date: Sun, 24 Aug 2014 23:02:15 +0000 (-0500) Subject: fix some test_weakref tests to not rely on ref-counting (closes #22267) X-Git-Tag: v2.7.9rc1~272 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8a4448c8bb5aabbe3b4d167ba568687d197aaa1a;p=thirdparty%2FPython%2Fcpython.git fix some test_weakref tests to not rely on ref-counting (closes #22267) --- diff --git a/Lib/test/test_weakref.py b/Lib/test/test_weakref.py index 40e1473eecdf..cc0a755edc41 100644 --- a/Lib/test/test_weakref.py +++ b/Lib/test/test_weakref.py @@ -1154,6 +1154,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): @@ -1175,6 +1176,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):