[pypy-svn] r75474 - pypy/trunk/pypy/translator/sandbox/test

arigo at codespeak.net arigo at codespeak.net
Sat Jun 19 17:46:20 CEST 2010


Author: arigo
Date: Sat Jun 19 17:46:19 2010
New Revision: 75474

Modified:
   pypy/trunk/pypy/translator/sandbox/test/test_sandbox.py
Log:
Fix test for Mac OS/X.


Modified: pypy/trunk/pypy/translator/sandbox/test/test_sandbox.py
==============================================================================
--- pypy/trunk/pypy/translator/sandbox/test/test_sandbox.py	(original)
+++ pypy/trunk/pypy/translator/sandbox/test/test_sandbox.py	Sat Jun 19 17:46:19 2010
@@ -145,7 +145,9 @@
     g = pipe.stdin
     f = pipe.stdout
     expect(f, g, "ll_os.ll_os_getenv", ("PYPY_GENERATIONGC_NURSERY",), None)
-    expect(f, g, "ll_os.ll_os_open", ("/proc/cpuinfo", 0, 420), OSError(5232, "xyz"))
+    if sys.platform == 'linux2':  # on Mac, uses another (sandboxsafe) approach
+        expect(f, g, "ll_os.ll_os_open", ("/proc/cpuinfo", 0, 420),
+               OSError(5232, "xyz"))
     g.close()
     tail = f.read()
     f.close()



More information about the Pypy-commit mailing list