diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-04-08 17:23:26 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-04-08 17:23:26 -0400 |
commit | ffec6ab936a73f5cbe63d9409beb12f1f0307d0b (patch) | |
tree | 7ad66449bea3a6866bc84ea202b88c12b4385430 | |
parent | 07153dc0926568b35a907241d8e954ecf0ca54f1 (diff) | |
download | sqlalchemy-ffec6ab936a73f5cbe63d9409beb12f1f0307d0b.tar.gz |
- add test support for MySQLdb with use_unicode=1 or using mysqlclient on py3k
-rw-r--r-- | test/sql/test_types.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/sql/test_types.py b/test/sql/test_types.py index 017a176db..ce2d3a5e0 100644 --- a/test/sql/test_types.py +++ b/test/sql/test_types.py @@ -964,6 +964,12 @@ class UnicodeTest(fixtures.TestBase): testing.db.dialect.returns_unicode_strings, True if util.py3k else "conditional" ) + elif testing.against("mysql+mysqldb"): + eq_( + testing.db.dialect.returns_unicode_strings, + True if util.py3k or testing.db.url.query.get("use_unicode") + else False + ) else: expected = (testing.db.name, testing.db.driver) in \ ( |