[pypy-svn] r23183 - pypy/dist/pypy/rpython/rctypes/test
arigo at codespeak.net
arigo at codespeak.net
Thu Feb 9 20:30:26 CET 2006
Author: arigo
Date: Thu Feb 9 20:30:24 2006
New Revision: 23183
Modified:
pypy/dist/pypy/rpython/rctypes/test/test_rctypes.py
Log:
* removed a checked-in t.view()
* started to use the 'pypy.conftest.option.view' approach,
controlled by the --view command-line option.
Modified: pypy/dist/pypy/rpython/rctypes/test/test_rctypes.py
==============================================================================
--- pypy/dist/pypy/rpython/rctypes/test/test_rctypes.py (original)
+++ pypy/dist/pypy/rpython/rctypes/test/test_rctypes.py Thu Feb 9 20:30:24 2006
@@ -5,11 +5,12 @@
#o#from pypy.translator.c import compile
from pypy.translator.tool.cbuild import compile_c_module
from pypy.annotation.model import SomeCTypesObject, SomeObject
+from pypy import conftest
import sys
thisdir = py.magic.autopath().dirpath()
-def compile(fn, argtypes, view=False):
+def compile(fn, argtypes, view=conftest.option.view):
from pypy.translator.c.database import LowLevelDatabase
from pypy.rpython.lltypesystem.lltype import pyobjectptr
t = TranslationContext()
@@ -387,7 +388,7 @@
pass
def test_compile_struct(self):
- fn = compile( py_test_compile_struct, [ int, int ], False )
+ fn = compile( py_test_compile_struct, [ int, int ] )
res = fn( 42, -42 )
assert res == 42
@@ -399,11 +400,11 @@
try:
t.buildrtyper().specialize()
finally:
- t.view()
+ #d#t.view()
pass
def x_test_compile_pointer(self):
- fn = compile( py_test_compile_pointer, [ int, int ], True and False )
+ fn = compile( py_test_compile_pointer, [ int, int ] )
res = fn( -42, 42 )
assert res == -42
More information about the Pypy-commit
mailing list