diff options
author | mike bayer <mike_mp@zzzcomputing.com> | 2020-07-11 18:59:14 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@bbpush.zzzcomputing.com> | 2020-07-11 18:59:14 +0000 |
commit | 6ee643d723e8d65fb4bd3c8848b70693966ff3e5 (patch) | |
tree | da343aa55496aa48332f5d639bb2798eedfcf1f8 /lib/sqlalchemy/testing/assertions.py | |
parent | 9f6493a8951e58e36b37e31a2787c426ffe04451 (diff) | |
parent | 5de0f1cf50cc0170d8ea61304e7b887259ab577b (diff) | |
download | sqlalchemy-6ee643d723e8d65fb4bd3c8848b70693966ff3e5.tar.gz |
Merge "Convert remaining ORM APIs to support 2.0 style"
Diffstat (limited to 'lib/sqlalchemy/testing/assertions.py')
-rw-r--r-- | lib/sqlalchemy/testing/assertions.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/assertions.py b/lib/sqlalchemy/testing/assertions.py index 1ce59431e..ecc6a4ab8 100644 --- a/lib/sqlalchemy/testing/assertions.py +++ b/lib/sqlalchemy/testing/assertions.py @@ -404,6 +404,9 @@ 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 = ( |