[pypy-svn] r45733 - pypy/branch/pypy-more-rtti-inprogress/rpython/module/test
arigo at codespeak.net
arigo at codespeak.net
Thu Aug 16 16:56:09 CEST 2007
Author: arigo
Date: Thu Aug 16 16:56:09 2007
New Revision: 45733
Modified:
pypy/branch/pypy-more-rtti-inprogress/rpython/module/test/test_ll_os.py
Log:
Forgot to fix these tests.
Modified: pypy/branch/pypy-more-rtti-inprogress/rpython/module/test/test_ll_os.py
==============================================================================
--- pypy/branch/pypy-more-rtti-inprogress/rpython/module/test/test_ll_os.py (original)
+++ pypy/branch/pypy-more-rtti-inprogress/rpython/module/test/test_ll_os.py Thu Aug 16 16:56:09 2007
@@ -1,10 +1,8 @@
import os
from pypy.tool.udir import udir
-from pypy.tool.pytest.modcheck import skipimporterror
from pypy.translator.c.test.test_genc import compile
from pypy.rpython import extregistry
-from pypy.rpython.lltypesystem.module.ll_os import Implementation as impl
import sys
import py
@@ -26,13 +24,13 @@
assert data == os.getcwd()
def test_strerror():
- data = impl.ll_os_strerror(2)
- assert impl.from_rstr(data) == os.strerror(2)
+ data = getllimpl(os.strerror)(2)
+ assert data == os.strerror(2)
def test_system():
filename = str(udir.join('test_system.txt'))
- arg = impl.to_rstr('python -c "print 1+1" > %s' % filename)
- data = impl.ll_os_system(arg)
+ arg = 'python -c "print 1+1" > %s' % filename
+ data = getllimpl(os.system)(arg)
assert data == 0
assert file(filename).read().strip() == '2'
os.unlink(filename)
More information about the Pypy-commit
mailing list