Skip to content

Commit 4b88d16

Browse files
Update Lib/test/test_array.py
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent e29c15d commit 4b88d16

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Lib/test/test_array.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ def __index__(self):
7979
for typecode in ('I', 'L', 'Q'):
8080
with self.subTest(typecode=typecode):
8181
lst = []
82-
e = Evil(lst)
83-
lst.append(e)
84-
del e
82+
lst.append(Evil(lst))
8583
a = array.array(typecode)
8684
with self.assertRaises(TypeError):
8785
a.fromlist(lst)

0 commit comments

Comments
 (0)