[pypy-svn] r16222 - pypy/dist/pypy/rpython/module/test

tismer at codespeak.net tismer at codespeak.net
Mon Aug 22 18:49:11 CEST 2005


Author: tismer
Date: Mon Aug 22 18:49:10 2005
New Revision: 16222

Modified:
   pypy/dist/pypy/rpython/module/test/test_ll_os.py
Log:
ok ok, using udir now :-)

Modified: pypy/dist/pypy/rpython/module/test/test_ll_os.py
==============================================================================
--- pypy/dist/pypy/rpython/module/test/test_ll_os.py	(original)
+++ pypy/dist/pypy/rpython/module/test/test_ll_os.py	Mon Aug 22 18:49:10 2005
@@ -29,8 +29,9 @@
     assert from_rstr(data) == os.strerror(2)
 
 def test_system():
-    arg = to_rstr('python -c "print 1+1" > x')
+    filename = str(udir.join('test_system.txt'))
+    arg = to_rstr('python -c "print 1+1" > %s' % filename)
     data = ll_os_system(arg)
     assert data == 0
-    assert file('x').read().strip() == '2'
-    os.unlink('x')
+    assert file(filename).read().strip() == '2'
+    os.unlink(filename)



More information about the Pypy-commit mailing list