@@ -341,15 +341,15 @@ def test_object_delattrstring(self):
341341
342342    def  test_copy_to_object (self ):
343343        copy_to_object  =  _testcapi .object_copy_to_object 
344-         s1  =  copy_to_object (bytes (3 ), 'abc' , 'C' )
345-         s2  =  copy_to_object (bytes (3 ), 'abc' , 'F' )
346-         s3  =  copy_to_object (bytes (3 ), 'abc' , 'A' )
344+         s1  =  copy_to_object (bytearray (3 ), 'abc' , 'C' )
345+         s2  =  copy_to_object (bytearray (3 ), 'abc' , 'F' )
346+         s3  =  copy_to_object (bytearray (3 ), 'abc' , 'A' )
347347        self .assertEqual (s1 , s2 )
348348        self .assertEqual (s2 , s3 )
349349        self .assertEqual (s1 , s3 )
350-         self .assertRaises (BufferError , copy_to_object , bytes (2 ), 'abc' , 'C' )
351-         self .assertRaises (BufferError , copy_to_object , bytes (2 ), 'abc' , 'F' )
352-         self .assertRaises (BufferError , copy_to_object , bytes (2 ), 'abc' , 'A' )
350+         self .assertRaises (BufferError , copy_to_object , bytearray (2 ), 'abc' , 'C' )
351+         self .assertRaises (BufferError , copy_to_object , bytearray (2 ), 'abc' , 'F' )
352+         self .assertRaises (BufferError , copy_to_object , bytearray (2 ), 'abc' , 'A' )
353353        self .assertRaises (TypeError , copy_to_object , list (), 'abc' , 'C' )
354354        self .assertRaises (TypeError , copy_to_object , list (), 'abc' , 'F' )
355355        self .assertRaises (TypeError , copy_to_object , list (), 'abc' , 'A' )
0 commit comments