From: Mike Bayer Date: Sat, 28 Jan 2012 21:00:34 +0000 (-0500) Subject: mark this test as unsupported before 2.6, there's some unicode X-Git-Tag: rel_0_7_5~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbd46170fb2751084d3de09d5a78e5802a839bf2;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git mark this test as unsupported before 2.6, there's some unicode issue I'm not exactly sure of what nature it is --- diff --git a/test/lib/testing.py b/test/lib/testing.py index e30603f6e6..15f85aaf87 100644 --- a/test/lib/testing.py +++ b/test/lib/testing.py @@ -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): diff --git a/test/sql/test_compiler.py b/test/sql/test_compiler.py index 6e67431b45..d9fad94934 100644 --- a/test/sql/test_compiler.py +++ b/test/sql/test_compiler.py @@ -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(),