diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2021-07-12 21:52:09 +0000 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2021-07-12 21:52:09 +0000 |
| commit | b7791290ed5499542d2e6d7bdfac252f7648f5fc (patch) | |
| tree | 186e0ab28475565559a5f3cb3613d875d544d4a5 /lib | |
| parent | 71fba6191d6b1858b443b5d8846d89dc1506c3a6 (diff) | |
| parent | 4ff4760fade8020df0418005e0fdd130ed3589a4 (diff) | |
| download | sqlalchemy-b7791290ed5499542d2e6d7bdfac252f7648f5fc.tar.gz | |
Merge "Modernize tests - select(whereclause)"
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sqlalchemy/testing/suite/test_select.py | 4 | ||||
| -rw-r--r-- | lib/sqlalchemy/testing/warnings.py | 7 |
2 files changed, 2 insertions, 9 deletions
diff --git a/lib/sqlalchemy/testing/suite/test_select.py b/lib/sqlalchemy/testing/suite/test_select.py index 1605033a0..0a1227e58 100644 --- a/lib/sqlalchemy/testing/suite/test_select.py +++ b/lib/sqlalchemy/testing/suite/test_select.py @@ -1663,7 +1663,7 @@ class IsOrIsNotDistinctFromTest(fixtures.TablesTest): ) result = connection.execute( - tbl.select(tbl.c.col_a.is_distinct_from(tbl.c.col_b)) + tbl.select().where(tbl.c.col_a.is_distinct_from(tbl.c.col_b)) ).fetchall() eq_( len(result), @@ -1674,7 +1674,7 @@ class IsOrIsNotDistinctFromTest(fixtures.TablesTest): 1 if expected_row_count_for_is == 0 else 0 ) result = connection.execute( - tbl.select(tbl.c.col_a.is_not_distinct_from(tbl.c.col_b)) + tbl.select().where(tbl.c.col_a.is_not_distinct_from(tbl.c.col_b)) ).fetchall() eq_( len(result), diff --git a/lib/sqlalchemy/testing/warnings.py b/lib/sqlalchemy/testing/warnings.py index 40a579101..fea8a6f0a 100644 --- a/lib/sqlalchemy/testing/warnings.py +++ b/lib/sqlalchemy/testing/warnings.py @@ -66,15 +66,8 @@ def setup_filters(): # we are moving one at a time for msg in [ # - # Core execution - # - # r".*DefaultGenerator.execute\(\)", - # - # - # # Core SQL constructs # - r"The FromClause\.select\(\).whereclause parameter is deprecated", r"Set functions such as union\(\), union_all\(\), extract\(\),", r"The legacy calling style of select\(\) is deprecated and will be " "removed", |
