diff options
Diffstat (limited to 'test/orm/query.py')
-rw-r--r-- | test/orm/query.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/orm/query.py b/test/orm/query.py index e0b8bf4f3..e3f6ed42c 100644 --- a/test/orm/query.py +++ b/test/orm/query.py @@ -1,7 +1,8 @@ import testbase import operator +from sqlalchemy.sql import compiler from sqlalchemy import * -from sqlalchemy import ansisql +from sqlalchemy.engine import default from sqlalchemy.orm import * from testlib import * from testlib.fixtures import * @@ -141,7 +142,7 @@ class OperatorTest(QueryTest): """test sql.Comparator implementation for MapperProperties""" def _test(self, clause, expected): - c = str(clause.compile(dialect=ansisql.ANSIDialect())) + c = str(clause.compile(dialect = default.DefaultDialect())) assert c == expected, "%s != %s" % (c, expected) def test_arithmetic(self): @@ -182,7 +183,7 @@ class OperatorTest(QueryTest): # the compiled clause should match either (e.g.): # 'a' < 'b' -or- 'b' > 'a'. - compiled = str(py_op(lhs, rhs).compile(dialect=ansisql.ANSIDialect())) + compiled = str(py_op(lhs, rhs).compile(dialect=default.DefaultDialect())) fwd_sql = "%s %s %s" % (l_sql, fwd_op, r_sql) rev_sql = "%s %s %s" % (r_sql, rev_op, l_sql) @@ -201,7 +202,7 @@ class OperatorTest(QueryTest): # this one would require adding compile() to InstrumentedScalarAttribute. do we want this ? #(User.id, "users.id") ): - c = expr.compile(dialect=ansisql.ANSIDialect()) + c = expr.compile(dialect=default.DefaultDialect()) assert str(c) == compare, "%s != %s" % (str(c), compare) |