summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2021-02-25 17:07:06 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2021-02-25 17:19:19 -0500
commit852119c9f8235a75dcfa9339e6ebf2f57eb39154 (patch)
tree7b6f38e51358d3ec6245a45e19557eaf2f6465d2 /lib/sqlalchemy/testing
parentdc615763d39916e9c037c7c376db1817cdf02764 (diff)
downloadsqlalchemy-852119c9f8235a75dcfa9339e6ebf2f57eb39154.tar.gz
Revert AppenderQuery modifications from ORM
We are unfortunately stuck with this class completely until we get rid of "dynamic" altogether. The usage contract includes the "query_class" mixin feature where users add their own methods, and this use case very well in line with 2.0's contract. As Query is not going away in any case this has to stay in "legacy" style, there's no point trying to change it as the new version was still fully dependent on Query. Fixes: #5981 Change-Id: I1bc623b17d976b4bb417ab623248d4ac227db74d
Diffstat (limited to 'lib/sqlalchemy/testing')
-rw-r--r--lib/sqlalchemy/testing/assertions.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/sqlalchemy/testing/assertions.py b/lib/sqlalchemy/testing/assertions.py
index 44d7405b1..81c74e7c1 100644
--- a/lib/sqlalchemy/testing/assertions.py
+++ b/lib/sqlalchemy/testing/assertions.py
@@ -444,9 +444,6 @@ class AssertsCompiledSQL(object):
from sqlalchemy import orm
- if isinstance(clause, orm.dynamic.AppenderQuery):
- clause = clause._statement
-
if isinstance(clause, orm.Query):
compile_state = clause._compile_state()
compile_state.statement._label_style = (