Skip to content

Commit 7a6a009

Browse files
author
Victor Stinner
committed
test_array: fix the DeprecationWarning('object.__init__() takes no parameters')
1 parent 23683ef commit 7a6a009

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ArraySubclass(array.array):
2222

2323
class ArraySubclassWithKwargs(array.array):
2424
def __init__(self, typecode, newarg=None):
25-
array.array.__init__(self, typecode)
25+
array.array.__init__(self)
2626

2727
tests = [] # list to accumulate all tests
2828
typecodes = "ubBhHiIlLfd"

0 commit comments

Comments
 (0)