diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-01-28 15:20:21 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-01-28 15:20:21 -0500 |
commit | 09553dc90f4a95b314994b48068b046de1413104 (patch) | |
tree | 4103d05a99beb0ca07dea7def9aa0514809f10a1 /test/lib/testing.py | |
parent | 45e6875752fcaf7d3a60907959ed9d154cca0d5d (diff) | |
download | sqlalchemy-09553dc90f4a95b314994b48068b046de1413104.tar.gz |
- [feature] Dialect-specific compilers now raise
CompileException for all type/statement compilation
issues, instead of InvalidRequestError or ArgumentError.
The DDL for CREATE TABLE will re-raise
CompileExceptions to include table/column information
for the problematic column. [ticket:2361]
Diffstat (limited to 'test/lib/testing.py')
-rw-r--r-- | test/lib/testing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/testing.py b/test/lib/testing.py index a84c5a7ae..e30603f6e 100644 --- a/test/lib/testing.py +++ b/test/lib/testing.py @@ -522,8 +522,8 @@ 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, str(e)), "%r !~ %s" % (msg, e) - print str(e) + assert re.search(msg, unicode(e)), u"%r !~ %s" % (msg, e) + print unicode(e).encode('utf-8') def fail(msg): assert False, msg |