summaryrefslogtreecommitdiff
path: root/test/perf
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/perf
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/perf')
-rw-r--r--test/perf/orm2010.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/perf/orm2010.py b/test/perf/orm2010.py
index de467cfd7..61b4e9b89 100644
--- a/test/perf/orm2010.py
+++ b/test/perf/orm2010.py
@@ -143,9 +143,7 @@ def run_with_profile(runsnake=False, dump=False):
)
stats = pstats.Stats(filename)
- counts_by_methname = dict(
- (key[2], stats.stats[key][0]) for key in stats.stats
- )
+ counts_by_methname = {key[2]: stats.stats[key][0] for key in stats.stats}
print("SQLA Version: %s" % __version__)
print("Total calls %d" % stats.total_calls)