]> granicus.if.org Git - python/commitdiff
test_array: fix the DeprecationWarning('object.__init__() takes no parameters')
authorVictor Stinner <victor.stinner@haypocalc.com>
Tue, 4 Jan 2011 00:04:44 +0000 (00:04 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Tue, 4 Jan 2011 00:04:44 +0000 (00:04 +0000)
Lib/test/test_array.py

index 6de6bf265c22fc9e79822230dfcceadb5a3e0624..33fb244534fd0ca1dde600376cf156dc7ab151ee 100755 (executable)
@@ -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"