From: Mike Bayer Date: Thu, 15 Apr 2010 04:48:51 +0000 (-0400) Subject: actually we need to copy the dict there since it gets run repeatedly inside of an... X-Git-Tag: rel_0_6_0~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=adeacfaf1cfbcbc2188bce9a35251b990b753fa8;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git actually we need to copy the dict there since it gets run repeatedly inside of an allof...getting messier here --- diff --git a/lib/sqlalchemy/test/assertsql.py b/lib/sqlalchemy/test/assertsql.py index 76f30f13bf..d363d33132 100644 --- a/lib/sqlalchemy/test/assertsql.py +++ b/lib/sqlalchemy/test/assertsql.py @@ -159,7 +159,7 @@ class CompiledSQL(SQLMatchRule): all_params = list(params) all_received = list(_received_parameters) while params: - param = params.pop(0) + param = dict(params.pop(0)) for k, v in context.compiled.params.iteritems(): param.setdefault(k, v)