File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
pymysql/tests/thirdparty/test_MySQLdb Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ def setUp(self):
32
32
self .BLOBUText = unicode ().join (unichr (i ) for i in range (16834 ))
33
33
else :
34
34
self .BLOBUText = "" .join (chr (i ) for i in range (16834 ))
35
- self .BLOBBinary = self .db_module .Binary ('' .join ([chr (i ) for i in range (256 )] * 16 ))
35
+ data = bytearray (range (256 )) * 16
36
+ self .BLOBBinary = self .db_module .Binary (data )
36
37
37
38
leak_test = True
38
39
Original file line number Diff line number Diff line change @@ -827,8 +827,8 @@ def test_Timestamp(self):
827
827
# self.assertEqual(str(t1),str(t2))
828
828
829
829
def test_Binary (self ):
830
- b = self .driver .Binary ('Something' )
831
- b = self .driver .Binary ('' )
830
+ b = self .driver .Binary (b 'Something' )
831
+ b = self .driver .Binary (b '' )
832
832
833
833
def test_STRING (self ):
834
834
self .assertTrue (hasattr (self .driver ,'STRING' ),
You can’t perform that action at this time.
0 commit comments