From df3bf65f12e134db9f13fa66010969dda96d2249 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 8 Apr 2011 15:16:12 -0400 Subject: - more liberal check here - dont encode enums in py3k --- test/sql/test_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/sql') diff --git a/test/sql/test_types.py b/test/sql/test_types.py index 7865a5296..d44487d53 100644 --- a/test/sql/test_types.py +++ b/test/sql/test_types.py @@ -635,7 +635,7 @@ class UnicodeTest(fixtures.TestBase, AssertsExecutionResults): row = engine.execute(utf8_table.select()).first() x = row['plain_varchar_no_coding_error'] connect_opts = engine.dialect.create_connect_args(testing.db.url)[1] - if connect_opts.get('use_unicode', False): + if isinstance(x, unicode): x = x.encode('utf-8') a = hexlify(x) b = hexlify(asciidata) -- cgit v1.2.1