File tree 1 file changed +2
-9
lines changed
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 1
1
import copy
2
- import platform
3
2
import json
4
3
from pymysqlreplication import BinLogStreamReader
5
4
import unittest
@@ -776,10 +775,7 @@ def test_encoding_latin1(self):
776
775
db ["charset" ] = "latin1"
777
776
self .connect_conn_control (db )
778
777
779
- if platform .python_version_tuple ()[0 ] == "2" :
780
- string = unichr (233 )
781
- else :
782
- string = "\u00e9 "
778
+ string = "\u00e9 "
783
779
784
780
create_query = (
785
781
"CREATE TABLE test (test CHAR(12)) CHARACTER SET latin1 COLLATE latin1_bin;"
@@ -790,10 +786,7 @@ def test_encoding_latin1(self):
790
786
self .assertEqual (event .rows [0 ]["values" ]["test" ], string )
791
787
792
788
def test_encoding_utf8 (self ):
793
- if platform .python_version_tuple ()[0 ] == "2" :
794
- string = unichr (0x20AC )
795
- else :
796
- string = "\u20ac "
789
+ string = "\u20ac "
797
790
798
791
create_query = (
799
792
"CREATE TABLE test (test CHAR(12)) CHARACTER SET utf8 COLLATE utf8_bin;"
You can’t perform that action at this time.
0 commit comments