[pypy-svn] r35872 - pypy/dist/pypy/translator/goal

mwh at codespeak.net mwh at codespeak.net
Tue Dec 19 09:31:26 CET 2006


Author: mwh
Date: Tue Dec 19 09:31:25 2006
New Revision: 35872

Modified:
   pypy/dist/pypy/translator/goal/bench-unix.py
Log:
band-aid to stop pypy-cli's moving around halting benchmarks


Modified: pypy/dist/pypy/translator/goal/bench-unix.py
==============================================================================
--- pypy/dist/pypy/translator/goal/bench-unix.py	(original)
+++ pypy/dist/pypy/translator/goal/bench-unix.py	Tue Dec 19 09:31:25 2006
@@ -148,7 +148,10 @@
         if 'pypy-cli' in exename:
             dirname = exename + '-data'
             codesize = 'N/A'
-            exesize = os.path.getsize(os.path.join(dirname, 'main.exe'))
+            try:
+                exesize = os.path.getsize(os.path.join(dirname, 'main.exe'))
+            except OSError:
+                exesize = 'XXX''
         else:
             codesize = os.popen('size "%s" | tail -n1 | cut -f1'%(exename,)).read().strip()
             exesize = os.path.getsize(exe)



More information about the Pypy-commit mailing list