[pypy-svn] r70451 - pypy/trunk/pypy/module/pypyjit/test

arigo at codespeak.net arigo at codespeak.net
Fri Jan 8 13:33:55 CET 2010


Author: arigo
Date: Fri Jan  8 13:33:54 2010
New Revision: 70451

Modified:
   pypy/trunk/pypy/module/pypyjit/test/test_pypy_c.py
Log:
Make the error message clearer for the case where
we make a typo in --pypy.


Modified: pypy/trunk/pypy/module/pypyjit/test/test_pypy_c.py
==============================================================================
--- pypy/trunk/pypy/module/pypyjit/test/test_pypy_c.py	(original)
+++ pypy/trunk/pypy/module/pypyjit/test/test_pypy_c.py	Fri Jan  8 13:33:54 2010
@@ -470,6 +470,8 @@
     g = os.popen('"%s" --info' % pypy_c, 'r')
     lines = g.readlines()
     g.close()
+    if not lines:
+        raise ValueError("cannot execute %r" % pypy_c)
     for line in lines:
         line = line.strip()
         if line.startswith(option + ':'):



More information about the Pypy-commit mailing list