10000 fix test · pkdevboxy/PyMySQL@9888906 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9888906

Browse files
committed
fix test
1 parent 302c679 commit 9888906

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymysql/tests/test_connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import datetime
2-
import decimal
32
import sys
43
import time
54
import unittest2
65
import pymysql
76
from pymysql.tests import base
7+
from pymysql._compat import text_type
88

99

1010
class TempUser:
@@ -534,7 +534,7 @@ def test_escape_fallback_encoder(self):
534534
class Custom(str):
535535
pass
536536

537-
mapping = {pymysql.text_type: pymysql.escape_string}
537+
mapping = {text_type: pymysql.escape_string}
538538
self.assertEqual(con.escape(Custom('foobar'), mapping), "'foobar'")
539539

540540
def test_escape_no_default(self):

0 commit comments

Comments
 (0)
0