From: Mike Bayer Date: Tue, 15 Dec 2020 16:22:37 +0000 (-0500) Subject: fix some pep8 warnings X-Git-Tag: rel_1_4_0b2~97 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e8ff0af840eb7fae11ef9234ae2bf1e16a9b634e;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix some pep8 warnings somehow the change in 4beecfb90 merged with failing pep8. Fix those and also fix hardcoded "basepython" version. Change-Id: Id38674661e038499aef76770e9799517e3613933 --- 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