[pypy-svn] r29270 - pypy/dist/pypy/translator/cli/test

antocuni at codespeak.net antocuni at codespeak.net
Fri Jun 23 19:27:31 CEST 2006


Author: antocuni
Date: Fri Jun 23 19:27:26 2006
New Revision: 29270

Modified:
   pypy/dist/pypy/translator/cli/test/runtest.py
Log:
Windows compatibilty (the strip() serves to remove the trailing \r\n).



Modified: pypy/dist/pypy/translator/cli/test/runtest.py
==============================================================================
--- pypy/dist/pypy/translator/cli/test/runtest.py	(original)
+++ pypy/dist/pypy/translator/cli/test/runtest.py	Fri Jun 23 19:27:26 2006
@@ -167,6 +167,9 @@
         if self._exe is None:
             py.test.skip("Compilation disabled")
 
+        if getoption('norun'):
+            py.test.skip("Execution disabled")
+
         arglist = SDK.runtime() + [self._exe] + map(str, args)
         env = os.environ.copy()
         env['LANG'] = 'C'
@@ -176,7 +179,7 @@
         retval = mono.wait()
         assert retval == 0, stderr
 
-        res = eval(stdout)
+        res = eval(stdout.strip())
         if isinstance(res, tuple):
             res = StructTuple(res) # so tests can access tuple elements with .item0, .item1, etc.
         elif isinstance(res, list):



More information about the Pypy-commit mailing list