From ac1f58795ad49d643ff2993245d7cf458a4caf5b Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 28 Feb 2010 20:12:43 +0000 Subject: - simplify the OurSQL dialect regarding py3k, this version gives it a fairly fighting chance on python 3. there's an oursql bug where it can't raise an exception on executemany() correctly. - needed to add "plain_query" wrappers for all the reflection methods. not sure why this was not needed earlier. --- lib/sqlalchemy/test/assertsql.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/sqlalchemy/test/assertsql.py') diff --git a/lib/sqlalchemy/test/assertsql.py b/lib/sqlalchemy/test/assertsql.py index 6dbc95b78..1417c2e43 100644 --- a/lib/sqlalchemy/test/assertsql.py +++ b/lib/sqlalchemy/test/assertsql.py @@ -63,7 +63,7 @@ class ExactSQL(SQLMatchRule): if not context: return - _received_statement = _process_engine_statement(statement, context) + _received_statement = _process_engine_statement(context.unicode_statement, context) _received_parameters = context.compiled_parameters # TODO: remove this step once all unit tests @@ -101,7 +101,7 @@ class RegexSQL(SQLMatchRule): if not context: return - _received_statement = _process_engine_statement(statement, context) + _received_statement = _process_engine_statement(context.unicode_statement, context) _received_parameters = context.compiled_parameters equivalent = bool(self.regex.match(_received_statement)) -- cgit v1.2.1