(self)
| 692 | |
| 693 | @requires_specialization |
| 694 | def test_binary_subscr_list_int(self): |
| 695 | def get_items(): |
| 696 | items = [] |
| 697 | for _ in range(self.ITEMS): |
| 698 | item = [None] |
| 699 | items.append(item) |
| 700 | return items |
| 701 | |
| 702 | def read(items): |
| 703 | for item in items: |
| 704 | try: |
| 705 | item[0] |
| 706 | except IndexError: |
| 707 | pass |
| 708 | |
| 709 | def write(items): |
| 710 | for item in items: |
| 711 | item.clear() |
| 712 | item.append(None) |
| 713 | |
| 714 | opname = "BINARY_OP_SUBSCR_LIST_INT" |
| 715 | self.assert_races_do_not_crash(opname, get_items, read, write) |
| 716 | |
| 717 | @requires_specialization |
| 718 | def test_for_iter_gen(self): |
nothing calls this directly
no test coverage detected