MCPcopy Index your code
hub / github.com/python/cpython / test_for_iter_list

Method test_for_iter_list

Lib/test/test_opcache.py:750–769  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

748
749 @requires_specialization
750 def test_for_iter_list(self):
751 def get_items():
752 items = []
753 for _ in range(self.ITEMS):
754 item = [None]
755 items.append(item)
756 return items
757
758 def read(items):
759 for item in items:
760 for item in item:
761 break
762
763 def write(items):
764 for item in items:
765 item.clear()
766 item.append(None)
767
768 opname = "FOR_ITER_LIST"
769 self.assert_races_do_not_crash(opname, get_items, read, write)
770
771 @requires_specialization
772 def test_load_attr_class(self):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected