summaryrefslogtreecommitdiff
path: root/test/engine/test_pool.py
diff options
context:
space:
mode:
authorFederico Caselli <cfederico87@gmail.com>2022-11-03 20:52:21 +0100
committerFederico Caselli <cfederico87@gmail.com>2022-11-16 23:03:04 +0100
commit4eb4ceca36c7ce931ea65ac06d6ed08bf459fc66 (patch)
tree4970cff3f78489a4a0066cd27fd4bae682402957 /test/engine/test_pool.py
parent3fc6c40ea77c971d3067dab0fdf57a5b5313b69b (diff)
downloadsqlalchemy-4eb4ceca36c7ce931ea65ac06d6ed08bf459fc66.tar.gz
Try running pyupgrade on the code
command run is "pyupgrade --py37-plus --keep-runtime-typing --keep-percent-format <files...>" pyupgrade will change assert_ to assertTrue. That was reverted since assertTrue does not exists in sqlalchemy fixtures Change-Id: Ie1ed2675c7b11d893d78e028aad0d1576baebb55
Diffstat (limited to 'test/engine/test_pool.py')
-rw-r--r--test/engine/test_pool.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/engine/test_pool.py b/test/engine/test_pool.py
index 9d9c3a429..f267eac77 100644
--- a/test/engine/test_pool.py
+++ b/test/engine/test_pool.py
@@ -1410,8 +1410,8 @@ class QueuePoolTest(PoolTestBase):
# two pooled connections unclosed.
eq_(
- set([c.close.call_count for c in strong_refs]),
- set([1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0]),
+ {c.close.call_count for c in strong_refs},
+ {1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0},
)
def test_recycle(self):
@@ -1693,7 +1693,7 @@ class QueuePoolTest(PoolTestBase):
class TrackQueuePool(pool.QueuePool):
def __init__(self, *arg, **kw):
pools.append(self)
- super(TrackQueuePool, self).__init__(*arg, **kw)
+ super().__init__(*arg, **kw)
def creator():
return slow_closing_connection.connect()