[pypy-svn] r75184 - in pypy/branch/fast-ctypes/pypy/rlib: . test
getxsick at codespeak.net
getxsick at codespeak.net
Mon Jun 7 22:24:02 CEST 2010
Author: getxsick
Date: Mon Jun 7 22:24:00 2010
New Revision: 75184
Added:
pypy/branch/fast-ctypes/pypy/rlib/rjitffi.py
- copied unchanged from r75133, pypy/branch/fast-ctypes/pypy/rlib/jitffi.py
pypy/branch/fast-ctypes/pypy/rlib/test/test_rjitffi.py
- copied, changed from r75133, pypy/branch/fast-ctypes/pypy/rlib/test/test_jitffi.py
Removed:
pypy/branch/fast-ctypes/pypy/rlib/jitffi.py
pypy/branch/fast-ctypes/pypy/rlib/test/test_jitffi.py
Log:
rename rlib/jitffi.py to rlib/rjitffi.py
Copied: pypy/branch/fast-ctypes/pypy/rlib/test/test_rjitffi.py (from r75133, pypy/branch/fast-ctypes/pypy/rlib/test/test_jitffi.py)
==============================================================================
--- pypy/branch/fast-ctypes/pypy/rlib/test/test_jitffi.py (original)
+++ pypy/branch/fast-ctypes/pypy/rlib/test/test_rjitffi.py Mon Jun 7 22:24:00 2010
@@ -1,4 +1,4 @@
-from pypy.rlib import jitffi
+from pypy.rlib import rjitffi
from pypy.translator.tool.cbuild import ExternalCompilationInfo
from pypy.translator.platform import platform
from pypy.rpython.lltypesystem import rffi, lltype
@@ -57,10 +57,10 @@
cls.lib_name = cls.preprare_c_example()
def test_missing_lib(self):
- py.test.raises(OSError, jitffi.CDLL, 'xxxfoo888baryyy')
+ py.test.raises(OSError, rjitffi.CDLL, 'xxxfoo888baryyy')
def test_get(self):
- lib = jitffi.CDLL(self.lib_name)
+ lib = rjitffi.CDLL(self.lib_name)
func = lib.get('add_integers', ['int', 'int'], 'int')
assert 3 == func.call(1,2)
@@ -76,7 +76,7 @@
assert 2.7 == func.call(1.2, 1.5)
def test_get_void(self):
- lib = jitffi.CDLL(self.lib_name)
+ lib = rjitffi.CDLL(self.lib_name)
func = lib.get('fvoid', [], 'int')
assert 1 == func.call()
@@ -87,7 +87,7 @@
assert func.call(1, 2) is None
def test_undefined_func(self):
- lib = jitffi.CDLL(self.lib_name)
+ lib = rjitffi.CDLL(self.lib_name)
# xxxfoo888baryyy - not existed function
py.test.raises(ValueError, lib.get, 'xxxfoo888baryyy', [])
py.test.raises(ValueError, lib.get, 'xxxfoo888baryyy', ['int'], 'int')
More information about the Pypy-commit
mailing list