diff options
| author | Gord Thompson <gord@gordthompson.com> | 2021-07-04 15:56:40 -0600 |
|---|---|---|
| committer | Gord Thompson <gord@gordthompson.com> | 2021-07-04 15:56:40 -0600 |
| commit | 4ff4760fade8020df0418005e0fdd130ed3589a4 (patch) | |
| tree | 661b4d731047ba27863b40f79ef65234e9b4a273 /lib/sqlalchemy/testing/suite | |
| parent | b920869ef54d05e73e2a980b73647d6050ffeb9d (diff) | |
| download | sqlalchemy-4ff4760fade8020df0418005e0fdd130ed3589a4.tar.gz | |
Modernize tests - select(whereclause)
Change-Id: I306cfbea9920b35100e3087dcc21d7ffa6c39c55
Diffstat (limited to 'lib/sqlalchemy/testing/suite')
| -rw-r--r-- | lib/sqlalchemy/testing/suite/test_select.py | 4 |
1 files changed, 2 insertions, 2 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), |
