Skip to content

Commit 3ca5db7

Browse files
committed
remove : removed python2 unichr
1 parent fbfa2d6 commit 3ca5db7

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

pymysqlreplication/tests/test_data_type.py

+2-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import copy
2-
import platform
32
import json
43
from pymysqlreplication import BinLogStreamReader
54
import unittest
@@ -776,10 +775,7 @@ def test_encoding_latin1(self):
776775
db["charset"] = "latin1"
777776
self.connect_conn_control(db)
778777

779-
if platform.python_version_tuple()[0] == "2":
780-
string = unichr(233)
781-
else:
782-
string = "\u00e9"
778+
string = "\u00e9"
783779

784780
create_query = (
785781
"CREATE TABLE test (test CHAR(12)) CHARACTER SET latin1 COLLATE latin1_bin;"
@@ -790,10 +786,7 @@ def test_encoding_latin1(self):
790786
self.assertEqual(event.rows[0]["values"]["test"], string)
791787

792788
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"
797790

798791
create_query = (
799792
"CREATE TABLE test (test CHAR(12)) CHARACTER SET utf8 COLLATE utf8_bin;"

0 commit comments

Comments
 (0)