From e8ff0af840eb7fae11ef9234ae2bf1e16a9b634e Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 15 Dec 2020 11:22:37 -0500 Subject: [PATCH] fix some pep8 warnings somehow the change in 4beecfb90 merged with failing pep8. Fix those and also fix hardcoded "basepython" version. Change-Id: Id38674661e038499aef76770e9799517e3613933 --- test/orm/test_deprecations.py | 7 ++++++- test/orm/test_session.py | 1 - tox.ini | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/test/orm/test_deprecations.py b/test/orm/test_deprecations.py index d5cfca83a8..c0d5a93d50 100644 --- a/test/orm/test_deprecations.py +++ b/test/orm/test_deprecations.py @@ -2028,7 +2028,12 @@ class SessionTest(fixtures.RemovesEvents, _LocalFixture): "without using the text" ): # use :bindparam style - eq_(sess.scalar("select id from users where id=:id", {"id": 7}), 7) + eq_( + sess.scalar( + "select id from users where id=:id", {"id": 7} + ), + 7, + ) def test_session_str(self): s1 = Session(testing.db) diff --git a/test/orm/test_session.py b/test/orm/test_session.py index 759d78ba52..a9e962cded 100644 --- a/test/orm/test_session.py +++ b/test/orm/test_session.py @@ -58,7 +58,6 @@ class ExecutionTest(_fixtures.FixtureTest): finally: seq.drop(connection) - def test_parameter_execute(self): users = self.tables.users sess = Session(bind=testing.db) diff --git a/tox.ini b/tox.ini index 637d1e8cc4..355e8446d0 100644 --- a/tox.ini +++ b/tox.ini @@ -100,7 +100,7 @@ commands= # thanks to https://julien.danjou.info/the-best-flake8-extensions/ [testenv:pep8] -basepython = python3.7 +basepython = python3 deps= flake8 flake8-import-order -- 2.47.3