@@ -1203,7 +1203,6 @@ def test_free_after_iterating(self):
12031203 support .check_free_after_iterating (self , reversed , array .array ,
12041204 (self .typecode ,))
12051205
1206-
12071206class StringTest (BaseTest ):
12081207
12091208 def test_setitem (self ):
@@ -1306,13 +1305,13 @@ def test_delslice(self):
13061305 def test_assignment (self ):
13071306 a = array .array (self .typecode , range (10 ))
13081307 a [::2 ] = array .array (self .typecode , [42 ]* 5 )
1309- self .assertEqual (a , array .array (self .typecode , [42 ,1 , 42 ,3 , 42 ,5 , 42 ,7 , 42 ,9 ]))
1308+ self .assertEqual (a , array .array (self .typecode , [42 , 1 , 42 , 3 , 42 , 5 , 42 , 7 , 42 , 9 ]))
13101309 a = array .array (self .typecode , range (10 ))
13111310 a [::- 4 ] = array .array (self .typecode , [10 ]* 3 )
1312- self .assertEqual (a , array .array (self .typecode , [0 ,10 ,2 , 3 , 4 , 10 ,6 , 7 , 8 , 10 ]))
1311+ self .assertEqual (a , array .array (self .typecode , [0 , 10 , 2 , 3 , 4 , 10 , 6 , 7 , 8 , 10 ]))
13131312 a = array .array (self .typecode , range (4 ))
13141313 a [::- 1 ] = a
1315- self .assertEqual (a , array .array (self .typecode , [3 ,2 , 1 , 0 ]))
1314+ self .assertEqual (a , array .array (self .typecode , [3 , 2 , 1 , 0 ]))
13161315 a = array .array (self .typecode , range (10 ))
13171316 b = a [:]
13181317 c = a [:]
@@ -1346,7 +1345,6 @@ def check_overflow(self, lower, upper):
13461345
13471346 def test_subclassing (self ):
13481347 typecode = self .typecode
1349-
13501348 class ExaggeratingArray (array .array ):
13511349 __slots__ = ['offset' ]
13521350
@@ -1382,16 +1380,12 @@ def test_type_error(self):
13821380class Intable :
13831381 def __init__ (self , num ):
13841382 self ._num = num
1385-
13861383 def __index__ (self ):
13871384 return self ._num
1388-
13891385 def __int__ (self ):
13901386 return self ._num
1391-
13921387 def __sub__ (self , other ):
13931388 return Intable (int (self ) - int (other ))
1394-
13951389 def __add__ (self , other ):
13961390 return Intable (int (self ) + int (other ))
13971391
0 commit comments