[pypy-svn] r43649 - pypy/branch/kill-ctypes/pypy/translator/c/test
fijal at codespeak.net
fijal at codespeak.net
Fri May 25 20:51:32 CEST 2007
Author: fijal
Date: Fri May 25 20:51:32 2007
New Revision: 43649
Modified:
pypy/branch/kill-ctypes/pypy/translator/c/test/test_extfunc.py
Log:
Test might be a bit saner now.
Modified: pypy/branch/kill-ctypes/pypy/translator/c/test/test_extfunc.py
==============================================================================
--- pypy/branch/kill-ctypes/pypy/translator/c/test/test_extfunc.py (original)
+++ pypy/branch/kill-ctypes/pypy/translator/c/test/test_extfunc.py Fri May 25 20:51:32 2007
@@ -708,16 +708,13 @@
filename = str(udir.join('test_execv.txt'))
def does_stuff():
progname = str(sys.executable)
- l = ['', '']
- l[0] = progname
- l[1] = "-c"
- l.append('open("%s","w").write("1")' % filename)
+ l = [progname, '-c', 'open("%s","w").write("1")' % filename]
pid = os.fork()
if pid == 0:
os.execv(progname, l)
else:
os.waitpid(pid, 0)
- func = compile(does_stuff, [])
+ func = compile(does_stuff, [], backendopt=False)
func()
assert open(filename).read() == "1"
More information about the Pypy-commit
mailing list