summaryrefslogtreecommitdiff
path: root/test/sql
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2022-05-14 11:13:50 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2022-05-14 12:28:01 -0400
commit9f0db34563a05a7b9f6e09110d35ce0d0f36d3a9 (patch)
treeab407bbcba270696fe7798b043f4521320e19c06 /test/sql
parentcd628fad7c92f5f54bf1bf6985fd983269b0ec19 (diff)
downloadsqlalchemy-9f0db34563a05a7b9f6e09110d35ce0d0f36d3a9.tar.gz
update for flake8-future-imports 0.0.5
a whole bunch of errors were apparently blocked by 0.0.4 being installed. Fixes: #8020 Change-Id: I22a0faeaabe03de501897893391946d677c2df7e
Diffstat (limited to 'test/sql')
-rw-r--r--test/sql/test_defaults.py6
-rw-r--r--test/sql/test_operators.py1
2 files changed, 3 insertions, 4 deletions
diff --git a/test/sql/test_defaults.py b/test/sql/test_defaults.py
index 3742aa174..0fa51e04c 100644
--- a/test/sql/test_defaults.py
+++ b/test/sql/test_defaults.py
@@ -512,19 +512,19 @@ class DefaultRoundTripTest(fixtures.TablesTest):
r"DefaultGenerator object is deprecated; please use "
r"the .scalar\(\) method."
):
- x = connection.execute(t.c.col1.default)
+ connection.execute(t.c.col1.default)
with expect_deprecated(
r"Using the .execute\(\) method to invoke a "
r"DefaultGenerator object is deprecated; please use "
r"the .scalar\(\) method."
):
- y = connection.execute(t.c.col2.default)
+ connection.execute(t.c.col2.default)
with expect_deprecated(
r"Using the .execute\(\) method to invoke a "
r"DefaultGenerator object is deprecated; please use "
r"the .scalar\(\) method."
):
- z = connection.execute(t.c.col3.default)
+ connection.execute(t.c.col3.default)
def test_standalone_default_scalar(self, connection):
t = self.tables.default_test
diff --git a/test/sql/test_operators.py b/test/sql/test_operators.py
index 186b93c54..6f068159e 100644
--- a/test/sql/test_operators.py
+++ b/test/sql/test_operators.py
@@ -454,7 +454,6 @@ class MultiElementExprTest(fixtures.TestBase, testing.AssertsCompiledSQL):
expr = op(expr, column(f"d{i}"))
opstring = compiler.OPERATORS[op]
- exprs = opstring.join(f"d{i}" for i in range(num))
if negate:
negate_op = {