[pypy-svn] r35623 - pypy/dist/pypy/translator/llvm/test

mwh at codespeak.net mwh at codespeak.net
Tue Dec 12 12:37:49 CET 2006


Author: mwh
Date: Tue Dec 12 12:37:47 2006
New Revision: 35623

Modified:
   pypy/dist/pypy/translator/llvm/test/test_extfunc.py
Log:
so that was just a problem in the test.  llvm now supports  os.execv and
os.execve.


Modified: pypy/dist/pypy/translator/llvm/test/test_extfunc.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/test/test_extfunc.py	(original)
+++ pypy/dist/pypy/translator/llvm/test/test_extfunc.py	Tue Dec 12 12:37:47 2006
@@ -613,14 +613,18 @@
         assert open(filename).read() == "1"
 
     def test_execv_raising():
-        py.test.skip("does not raise")
         def does_stuff():
             l = []
             l.append("asddsadw32eewdfwqdqwdqwd")
-            os.execv(l[0], l)
-            return 1
+            try:
+                os.execv(l[0], l)
+            except OSError:
+                return 1
+            else:
+                return 0
         func = compile_function(does_stuff, [])
-        py.test.raises(OSError, "func()")
+        res = func()
+        assert res == 1
 
     def test_execve():
         filename = str(udir.join('test_execve.txt'))



More information about the Pypy-commit mailing list