[pypy-svn] r35316 - pypy/dist/pypy/rpython/ootypesystem/test

arigo at codespeak.net arigo at codespeak.net
Tue Dec 5 18:15:56 CET 2006


Author: arigo
Date: Tue Dec  5 18:15:54 2006
New Revision: 35316

Modified:
   pypy/dist/pypy/rpython/ootypesystem/test/test_ooregistry.py
   pypy/dist/pypy/rpython/ootypesystem/test/test_oortype.py
Log:
(pedronis, arigo)

More! More! Kill!


Modified: pypy/dist/pypy/rpython/ootypesystem/test/test_ooregistry.py
==============================================================================
--- pypy/dist/pypy/rpython/ootypesystem/test/test_ooregistry.py	(original)
+++ pypy/dist/pypy/rpython/ootypesystem/test/test_ooregistry.py	Tue Dec  5 18:15:54 2006
@@ -21,11 +21,8 @@
     assert isinstance(s, annmodel.SomeOOInstance) and s.ootype is ootype.String
 
 def test_oostring_call():
-    def const(c):
-        return c
-
     def oof(ch):
-        return ootype.oostring(ch, const(-1))
+        return ootype.oostring(ch, -1)
 
     ch = 'a'
     res = interpret(oof, [ch], type_system='ootype')

Modified: pypy/dist/pypy/rpython/ootypesystem/test/test_oortype.py
==============================================================================
--- pypy/dist/pypy/rpython/ootypesystem/test/test_oortype.py	(original)
+++ pypy/dist/pypy/rpython/ootypesystem/test/test_oortype.py	Tue Dec  5 18:15:54 2006
@@ -200,11 +200,8 @@
     assert interpret(oof, [s], type_system='ootype') == 3
 
 def test_oostring():
-    def const(c):
-        return c
-    
     def oof(ch):
-        return oostring(ch, const(-1))
+        return oostring(ch, -1)
 
     ch = 'a'
     res = interpret(oof, [ch], type_system='ootype')



More information about the Pypy-commit mailing list