From: Mike Bayer Date: Wed, 8 Apr 2015 21:23:26 +0000 (-0400) Subject: - add test support for MySQLdb with use_unicode=1 or using mysqlclient on py3k X-Git-Tag: rel_1_0_0~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ffec6ab936a73f5cbe63d9409beb12f1f0307d0b;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - add test support for MySQLdb with use_unicode=1 or using mysqlclient on py3k --- diff --git a/test/sql/test_types.py b/test/sql/test_types.py index 017a176dbc..ce2d3a5e0f 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 \ (