Bump hacking (again)

The previous attempt did not update the version in pre commit config
so the old version is still used by pep8 target.

Change-Id: Ib4b2ee82bab8410b0b1f3a1e8a4e53cfb165e1d5
This commit is contained in:
Takashi Kajinami 2024-01-26 01:05:58 +09:00
parent c02d93fd21
commit 05d8f82c80
2 changed files with 5 additions and 5 deletions

View File

@ -32,7 +32,7 @@ repos:
- id: flake8
name: flake8
additional_dependencies:
- hacking>=3.0.1,<3.1.0
- hacking>=6.1.0,<6.2.0
language: python
entry: flake8
files: '^.*\.py$'

View File

@ -903,8 +903,8 @@ class MySQLConnectPingListenerTest(db_test_base._MySQLOpportunisticTestCase):
def test__connect_ping_listener(self):
for idx in range(2):
with self.engine.begin() as conn:
self.assertTrue(isinstance(conn._transaction,
base_engine.RootTransaction))
self.assertIsInstance(conn._transaction,
base_engine.RootTransaction)
# TODO(ralonsoh): drop this check once SQLAlchemy minimum
# version is 2.0.
if compat.sqla_2:
@ -912,5 +912,5 @@ class MySQLConnectPingListenerTest(db_test_base._MySQLOpportunisticTestCase):
self.assertIsNone(conn._transaction)
else:
engines._connect_ping_listener(conn, False)
self.assertTrue(isinstance(conn._transaction,
base_engine.RootTransaction))
self.assertIsInstance(conn._transaction,
base_engine.RootTransaction)