diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-04-08 18:21:02 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-04-08 18:21:02 -0400 |
commit | 1f960f44c0c42c197caeb47ce075bac06c732def (patch) | |
tree | 2f21cdf07b2bfec370f01776006dff587469360c /lib/sqlalchemy/test | |
parent | a30ffd71b9f5dc6ff2c56a57f45d86f1313df354 (diff) | |
download | sqlalchemy-1f960f44c0c42c197caeb47ce075bac06c732def.tar.gz |
starting to arrange things such that unneeded executors aren't getting
pulled into the unit of work at all. this involves dancing around lists
of states, seeing if child objects exist, not adding excessive callcounts
while doing that, etc.
Diffstat (limited to 'lib/sqlalchemy/test')
-rw-r--r-- | lib/sqlalchemy/test/assertsql.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqlalchemy/test/assertsql.py b/lib/sqlalchemy/test/assertsql.py index 81a6191a1..d67de2355 100644 --- a/lib/sqlalchemy/test/assertsql.py +++ b/lib/sqlalchemy/test/assertsql.py @@ -156,6 +156,8 @@ class CompiledSQL(SQLMatchRule): if not isinstance(params, list): params = [params] + all_params = list(params) + all_received = list(_received_parameters) while params: param = params.pop(0) if param not in _received_parameters: @@ -171,7 +173,7 @@ class CompiledSQL(SQLMatchRule): self._result = equivalent if not self._result: self._errmsg = "Testing for compiled statement %r partial params %r, " \ - "received %r with params %r" % (self.statement, params, _received_statement, _received_parameters) + "received %r with params %r" % (self.statement, all_params, _received_statement, all_received) class CountStatements(AssertRule): |