summaryrefslogtreecommitdiff
path: root/test/sql
diff options
context:
space:
mode:
authorBen Trofatter <trofatter@google.com>2013-03-18 17:58:41 -0700
committerBen Trofatter <trofatter@google.com>2013-03-18 17:58:41 -0700
commit68299cbd444d4ba1c837b9407faedb5dc42f9d16 (patch)
treed4b2f372f14f12764258e0a1eb515bcd4dd11747 /test/sql
parent9ad9ccec87b89023db611d70da2c6d455c29ab60 (diff)
downloadsqlalchemy-68299cbd444d4ba1c837b9407faedb5dc42f9d16.tar.gz
Added workaround for pymysql3 double wrapping ProgrammingErrors to pymysql dialect.
Added workaround for pymysql3 return a bytes object when queried for isolation level.
Diffstat (limited to 'test/sql')
-rw-r--r--test/sql/test_types.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/sql/test_types.py b/test/sql/test_types.py
index fac22a205..4bbfd96e8 100644
--- a/test/sql/test_types.py
+++ b/test/sql/test_types.py
@@ -699,6 +699,16 @@ class UnicodeTest(fixtures.TestBase):
# end Py2K
)
+ elif testing.against('mysql+pymysql'):
+ eq_(
+ testing.db.dialect.returns_unicode_strings,
+ # Py3K
+ #True
+ # Py2K
+ False
+ # end Py2K
+ )
+
else:
expected = (testing.db.name, testing.db.driver) in \
(
@@ -709,7 +719,7 @@ class UnicodeTest(fixtures.TestBase):
('mysql', 'oursql'),
('mysql', 'zxjdbc'),
('mysql', 'mysqlconnector'),
- ('mysql', 'pymysql'),
+ #('mysql', 'pymysql'),
('sqlite', 'pysqlite'),
('oracle', 'zxjdbc'),
('oracle', 'cx_oracle'),