]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
mark this test as unsupported before 2.6, there's some unicode
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 28 Jan 2012 21:00:34 +0000 (16:00 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 28 Jan 2012 21:00:34 +0000 (16:00 -0500)
issue I'm not exactly sure of what nature it is

test/lib/testing.py
test/sql/test_compiler.py

index e30603f6e6dee3330b984e5cc7a9663d52449748..15f85aaf87789251ad1f03a6f18682afb0de9956 100644 (file)
@@ -522,7 +522,7 @@ def assert_raises_message(except_cls, msg, callable_, *args, **kwargs):
         callable_(*args, **kwargs)
         assert False, "Callable did not raise an exception"
     except except_cls, e:
-        assert re.search(msg, unicode(e)), u"%r !~ %s" % (msg, e)
+        assert re.search(msg, unicode(e), re.UNICODE), u"%r !~ %s" % (msg, e)
         print unicode(e).encode('utf-8')
 
 def fail(msg):
index 6e67431b45f6c22d25be1d5eeec55a2ca7ccdcb6..d9fad94934c4b9b2cc7a3c34711b700f54bbc5f8 100644 (file)
@@ -2837,6 +2837,10 @@ class DDLTest(fixtures.TestBase, AssertsCompiledSQL):
             schema.CreateTable(t1).compile
         )
 
+    # there's some unicode issue in the assertion
+    # regular expression that appears to be resolved
+    # in 2.6, not exactly sure what it is
+    @testing.requires.python26
     def test_reraise_of_column_spec_issue_unicode(self):
         MyType = self._illegal_type_fixture()
         t1 = Table('t', MetaData(),