[pypy-svn] r49037 - pypy/branch/remove-extcompiler-rctypes/pypy/translator/c/test

cfbolz at codespeak.net cfbolz at codespeak.net
Sat Nov 24 14:53:44 CET 2007


Author: cfbolz
Date: Sat Nov 24 14:53:44 2007
New Revision: 49037

Modified:
   pypy/branch/remove-extcompiler-rctypes/pypy/translator/c/test/test_extfunc.py
Log:
fix test_execv


Modified: pypy/branch/remove-extcompiler-rctypes/pypy/translator/c/test/test_extfunc.py
==============================================================================
--- pypy/branch/remove-extcompiler-rctypes/pypy/translator/c/test/test_extfunc.py	(original)
+++ pypy/branch/remove-extcompiler-rctypes/pypy/translator/c/test/test_extfunc.py	Sat Nov 24 14:53:44 2007
@@ -825,9 +825,9 @@
 
 if hasattr(posix, 'execv') and hasattr(posix, 'fork'):
     def test_execv():
+        progname = str(sys.executable)
         filename = str(udir.join('test_execv.txt'))
         def does_stuff():
-            progname = str(sys.executable)
             l = [progname, '-c', 'open(%r,"w").write("1")' % filename]
             pid = os.fork()
             if pid == 0:



More information about the Pypy-commit mailing list