Skip to content

Commit a1e8d77

Browse files
committed
Fix runtests.py
Fix runtests.py: handle FileNotFoundError when removing pyperformance.egg-info.
1 parent 5eff578 commit a1e8d77

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

runtests.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ def run_bench(*cmd):
4343

4444
egg_info = "pyperformance.egg-info"
4545
print("Remove directory %s" % egg_info)
46-
shutil.rmtree(egg_info)
46+
try:
47+
shutil.rmtree(egg_info)
48+
except FileNotFoundError:
49+
pass
4750

4851
run_bench(python, script, 'venv')
4952

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
# - git push
2323
# - check Travis CI status:
2424
# https://travis-ci.org/python/pyperformance
25+
# - check AppVeyor status:
26+
# https://ci.appveyor.com/project/lazka/pyperformance-rdqv8
2527
#
2628
# Release a new version:
2729
#

0 commit comments

Comments
 (0)