[pypy-svn] r16801 - pypy/release/0.7.x/pypy/rpython/module/test
cfbolz at codespeak.net
cfbolz at codespeak.net
Sat Aug 27 18:52:42 CEST 2005
Author: cfbolz
Date: Sat Aug 27 18:52:41 2005
New Revision: 16801
Modified:
pypy/release/0.7.x/pypy/rpython/module/test/test_ll_os.py
Log:
another test that passes if you run it alone, but not if you run all the tests.
Modified: pypy/release/0.7.x/pypy/rpython/module/test/test_ll_os.py
==============================================================================
--- pypy/release/0.7.x/pypy/rpython/module/test/test_ll_os.py (original)
+++ pypy/release/0.7.x/pypy/rpython/module/test/test_ll_os.py Sat Aug 27 18:52:41 2005
@@ -55,10 +55,26 @@
f.close()
os.unlink(filename)
+test_src = """
+import os
+from pypy.tool.udir import udir
+from pypy.rpython.module.ll_os import *
+
def test_environ():
count = 0
while 1:
if not ll_os_environ(count):
break
count += 1
- assert count == len(os.environ.keys())
+ channel.send(count == len(os.environ.keys()))
+test_environ()
+"""
+
+def test_environ():
+ import py
+ gw = py.execnet.PopenGateway()
+ chan = gw.remote_exec(py.code.Source(test_src))
+ res = chan.receive()
+ assert res
+ chan.close()
+
More information about the Pypy-commit
mailing list