Skip to content

Commit

Permalink
Fix runtests.py
Browse files Browse the repository at this point in the history
Fix runtests.py: handle FileNotFoundError when removing
pyperformance.egg-info.
  • Loading branch information
vstinner committed Mar 26, 2020
1 parent 5eff578 commit a1e8d77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ def run_bench(*cmd):

egg_info = "pyperformance.egg-info"
print("Remove directory %s" % egg_info)
shutil.rmtree(egg_info)
try:
shutil.rmtree(egg_info)
except FileNotFoundError:
pass

run_bench(python, script, 'venv')

Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
# - git push
# - check Travis CI status:
# https://travis-ci.org/python/pyperformance
# - check AppVeyor status:
# https://ci.appveyor.com/project/lazka/pyperformance-rdqv8
#
# Release a new version:
#
Expand Down

0 comments on commit a1e8d77

Please sign in to comment.