Skip to content

Commit

Permalink
Merge pull request #7 from mdboom/mypy-benchmark
Browse files Browse the repository at this point in the history
Get mypy benchmark working on Python 3.11
  • Loading branch information
kmod authored Aug 16, 2022
2 parents 464d764 + 70fc878 commit 66e2fe8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 14 deletions.
1 change: 0 additions & 1 deletion benchmarks/MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ flaskblogging
kinto

[group all]
-mypyc
-json
9 changes: 0 additions & 9 deletions benchmarks/bm_mypy/bm_mypyc.toml

This file was deleted.

6 changes: 3 additions & 3 deletions benchmarks/bm_mypy/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mypy==0.790
mypy==0.961
mypy-extensions==0.4.3
typed-ast==1.4.1
typing-extensions==3.7.4.3
typed-ast==1.5.4
typing-extensions==4.2.0
2 changes: 1 addition & 1 deletion benchmarks/bm_mypy/run_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _bench_mypy(loops=20, *, legacy=False):
# so "elapsed" covers more than just how long main() takes.
t0 = pyperf.perf_counter()
try:
main(None, devnull, devnull, TARGETS)
main(None, devnull, devnull, TARGETS, clean_exit=True)
except SystemExit:
pass
t1 = pyperf.perf_counter()
Expand Down

0 comments on commit 66e2fe8

Please sign in to comment.