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

antocuni at codespeak.net antocuni at codespeak.net
Tue May 16 10:52:06 CEST 2006


Author: antocuni
Date: Tue May 16 10:52:01 2006
New Revision: 27261

Modified:
   pypy/dist/pypy/rpython/ootypesystem/test/test_ooann.py
   pypy/dist/pypy/rpython/ootypesystem/test/test_oortype.py
Log:
Added a failing test about 'assert' to test_oortype.py.



Modified: pypy/dist/pypy/rpython/ootypesystem/test/test_ooann.py
==============================================================================
--- pypy/dist/pypy/rpython/ootypesystem/test/test_ooann.py	(original)
+++ pypy/dist/pypy/rpython/ootypesystem/test/test_ooann.py	Tue May 16 10:52:01 2006
@@ -2,6 +2,7 @@
 from pypy.annotation import model as annmodel
 from pypy.objspace.flow import FlowObjSpace
 from pypy.annotation.annrpython import RPythonAnnotator
+import exceptions
 
 
 def test_simple_new():
@@ -225,4 +226,3 @@
     a = RPythonAnnotator()
     s = a.build_types(oof, [])
     assert isinstance(s, annmodel.SomeBuiltin)
-

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 May 16 10:52:01 2006
@@ -214,3 +214,9 @@
 
     res = interpret(oof, [False], type_system='ootype')
     assert isinstance(res, ootype._null_string)
+
+def test_assert():
+    def oof(b):
+        assert b
+
+    interpret(oof, [True], type_system='ootype')



More information about the Pypy-commit mailing list