summaryrefslogtreecommitdiff
path: root/test/sql/test_compiler.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-05-04 14:59:26 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2013-05-04 14:59:26 -0400
commit2a99b770ddf144c279ad8b42ad8593b3439cd2de (patch)
tree669f31c9921dc568fe94d73f31cdc5574062fcb6 /test/sql/test_compiler.py
parent6f82c320b8834761fa9606119a4c2cbc6c3312f1 (diff)
downloadsqlalchemy-2a99b770ddf144c279ad8b42ad8593b3439cd2de.tar.gz
- unicode literals need to just be handled differently if they have utf-8
encoded in them vs. unicode escaping. not worth figuring out how to combine these right now
Diffstat (limited to 'test/sql/test_compiler.py')
-rw-r--r--test/sql/test_compiler.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/sql/test_compiler.py b/test/sql/test_compiler.py
index e3f7df702..9cb0e6bbe 100644
--- a/test/sql/test_compiler.py
+++ b/test/sql/test_compiler.py
@@ -20,6 +20,7 @@ from sqlalchemy import Integer, String, MetaData, Table, Column, select, \
intersect, union_all, Boolean, distinct, join, outerjoin, asc, desc,\
over, subquery, case
import decimal
+from sqlalchemy.util import u
from sqlalchemy import exc, sql, util, types, schema
from sqlalchemy.sql import table, column, label
from sqlalchemy.sql.expression import ClauseList, _literal_as_text, HasPrefixes
@@ -2680,11 +2681,11 @@ class DDLTest(fixtures.TestBase, AssertsCompiledSQL):
def test_reraise_of_column_spec_issue_unicode(self):
MyType = self._illegal_type_fixture()
t1 = Table('t', MetaData(),
- Column('méil', MyType())
+ Column(u('méil'), MyType())
)
assert_raises_message(
exc.CompileError,
- r"\(in table 't', column 'méil'\): Couldn't compile type",
+ u(r"\(in table 't', column 'méil'\): Couldn't compile type"),
schema.CreateTable(t1).compile
)