]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- keep dialect at default for type compile
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 11 Oct 2012 15:15:29 +0000 (11:15 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 11 Oct 2012 15:15:29 +0000 (11:15 -0400)
- python2.5/3 fixes

test/sql/test_types.py

index 3b0f6a1460facb64e095be1c8e818ba69c8c21a1..1d096d7c416cc28b988b37bcc60e6e86be15005c 100644 (file)
@@ -767,7 +767,7 @@ class UnicodeTest(fixtures.TestBase):
         utfdata = unicodedata.encode('utf8')
         eq_(
             proc(utfdata),
-            unicodedata.encode('ascii', errors='ignore')
+            unicodedata.encode('ascii', 'ignore').decode()
         )
 
 
@@ -1248,6 +1248,7 @@ class ExpressionTest(fixtures.TestBase, AssertsExecutionResults, AssertsCompiled
         assert test_table.c.data.distinct().type == test_table.c.data.type
 
 class CompileTest(fixtures.TestBase, AssertsCompiledSQL):
+    __dialect__ = 'default'
 
     @testing.requires.unbounded_varchar
     def test_string_plain(self):