[pypy-commit] benchmarks default: unbreak benchmarks

fijal noreply at buildbot.pypy.org
Wed Jan 18 00:53:54 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r160:b6376749f6e5
Date: 2012-01-18 01:53 +0200
http://bitbucket.org/pypy/benchmarks/changeset/b6376749f6e5/

Log:	unbreak benchmarks

diff --git a/benchmarks.py b/benchmarks.py
--- a/benchmarks.py
+++ b/benchmarks.py
@@ -153,7 +153,10 @@
     for python in [base_python, changed_python]:
         maindir = relative('lib/cpython-doc')
         builddir = os.path.join(os.path.join(maindir, 'tools'), 'build')
-        shutil.rmtree(builddir)
+        try:
+            shutil.rmtree(builddir)
+        except OSError:
+            pass
         build = relative('lib/cpython-doc/tools/sphinx-build.py')
         os.mkdir(builddir)
         docdir = os.path.join(builddir, 'doctrees')


More information about the pypy-commit mailing list