Lines Matching defs:testcontext
1425 def check_weak_destroy_and_mutate_while_iterating(self, dict, testcontext):
1428 # `testcontext` should create an iterator, destroy one of the
1431 with testcontext() as (k, v):
1433 with testcontext() as (k, v):
1436 with testcontext() as (k, v):
1439 with testcontext() as (k, v):
1443 with testcontext() as (k, v):
1446 with testcontext() as (k, v):
1450 def check_weak_del_and_len_while_iterating(self, dict, testcontext):
1454 # (each call to testcontext() should schedule one item for removal
1457 with testcontext():
1465 with testcontext():
1470 with testcontext():
1474 with testcontext():
1478 with testcontext():
1492 def testcontext():
1503 self.check_weak_destroy_and_mutate_while_iterating(dict, testcontext)
1507 self.check_weak_del_and_len_while_iterating(dict, testcontext)
1519 def testcontext():
1530 self.check_weak_destroy_and_mutate_while_iterating(dict, testcontext)
1532 self.check_weak_del_and_len_while_iterating(dict, testcontext)