test_array: fix the DeprecationWarning('object.__init__() takes no parameters')

This commit is contained in:
Victor Stinner 2011-01-04 00:04:44 +00:00
parent 23683ef26d
commit 7a6a0093f3

View file

@ -22,7 +22,7 @@ class ArraySubclass(array.array):
class ArraySubclassWithKwargs(array.array):
def __init__(self, typecode, newarg=None):
array.array.__init__(self, typecode)
array.array.__init__(self)
tests = [] # list to accumulate all tests
typecodes = "ubBhHiIlLfd"