mirror of
https://github.com/python/cpython.git
synced 2025-09-28 11:15:17 +00:00
merge 3.4 (#22267)
This commit is contained in:
commit
d475731c54
1 changed files with 2 additions and 0 deletions
|
@ -1329,6 +1329,7 @@ class MappingTestCase(TestBase):
|
||||||
yield Object(v), v
|
yield Object(v), v
|
||||||
finally:
|
finally:
|
||||||
it = None # should commit all removals
|
it = None # should commit all removals
|
||||||
|
gc.collect()
|
||||||
self.check_weak_destroy_and_mutate_while_iterating(dict, testcontext)
|
self.check_weak_destroy_and_mutate_while_iterating(dict, testcontext)
|
||||||
|
|
||||||
def test_weak_values_destroy_while_iterating(self):
|
def test_weak_values_destroy_while_iterating(self):
|
||||||
|
@ -1351,6 +1352,7 @@ class MappingTestCase(TestBase):
|
||||||
yield k, Object(k)
|
yield k, Object(k)
|
||||||
finally:
|
finally:
|
||||||
it = None # should commit all removals
|
it = None # should commit all removals
|
||||||
|
gc.collect()
|
||||||
self.check_weak_destroy_and_mutate_while_iterating(dict, testcontext)
|
self.check_weak_destroy_and_mutate_while_iterating(dict, testcontext)
|
||||||
|
|
||||||
def test_make_weak_keyed_dict_from_dict(self):
|
def test_make_weak_keyed_dict_from_dict(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue