We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent deccbf0 commit a4dab68Copy full SHA for a4dab68
Lib/test/test_array.py
@@ -1684,23 +1684,9 @@ def test_gh_128961(self):
1684
# Tests for NULL pointer dereference in array.__setitem__
1685
# when the index conversion mutates the array.
1686
# See: gh-142555.
1687
- @subTests(
1688
- ("dtype", "items"),
1689
- [
1690
- ("b", list(range(64))),
1691
- ("B", list(range(64))),
1692
- ("h", list(range(64))),
1693
- ("H", list(range(64))),
1694
- ("i", list(range(64))),
1695
- ("l", list(range(64))),
1696
- ("q", list(range(64))),
1697
- ("I", list(range(64))),
1698
- ("L", list(range(64))),
1699
- ("Q", list(range(64))),
1700
- ],
1701
- )
1702
- def test_setitem_use_after_clear_with_int_data(self, dtype, items):
1703
- victim = array.array(dtype, items)
+ @subTests("dtype", ["b", "B", "h", "H", "i", "l", "q", "I", "L", "Q"])
+ def test_setitem_use_after_clear_with_int_data(self, dtype):
+ victim = array.array(dtype, list(range(64)))
1704
1705
class Index:
1706
def __index__(self):
0 commit comments