diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-07-20 11:03:08 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-07-21 16:00:12 -0400 |
| commit | 27ec4929198807702190b96d3c00d0291976f49e (patch) | |
| tree | 210716d7c12dcd4e3c17376730e4e6b2794fc792 /test/sql/test_selectable.py | |
| parent | e72106d1499ec628487f7e428e7c49acdd4eb9c0 (diff) | |
| download | sqlalchemy-27ec4929198807702190b96d3c00d0291976f49e.tar.gz | |
dont warn for dictionary passed positionally
Fixed issue where use of the :paramref:`_sql.case.whens` parameter passing
a dictionary positionally and not as a keyword argument would emit a 2.0
deprecation warning, referring to the deprecation of passing a list
positionally. The dictionary format of "whens", passed positionally, is
still supported and was accidentally marked as deprecated.
Removes warning filter for case statement.
Fixes: #6786
Change-Id: I8efd1882563773bec89ae5e34f0dfede77fc4683
Diffstat (limited to 'test/sql/test_selectable.py')
| -rw-r--r-- | test/sql/test_selectable.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sql/test_selectable.py b/test/sql/test_selectable.py index cfdf4ad02..61e25ddd7 100644 --- a/test/sql/test_selectable.py +++ b/test/sql/test_selectable.py @@ -3137,7 +3137,7 @@ class ReprTest(fixtures.TestBase): elements.BooleanClauseList._construct_raw(operators.and_), elements.BooleanClauseList._construct_raw(operators.or_), elements.Tuple(), - elements.Case([]), + elements.Case(), elements.Extract("foo", column("x")), elements.UnaryExpression(column("x")), elements.Grouping(column("x")), |
