[pypy-svn] r23749 - pypy/dist/pypy/rpython/test

micktwomey at codespeak.net micktwomey at codespeak.net
Tue Feb 28 17:30:52 CET 2006


Author: micktwomey
Date: Tue Feb 28 17:30:48 2006
New Revision: 23749

Modified:
   pypy/dist/pypy/rpython/test/test_extregistry.py
Log:
Committing a disabled test for the new specialize stuff in the extregistry.


Modified: pypy/dist/pypy/rpython/test/test_extregistry.py
==============================================================================
--- pypy/dist/pypy/rpython/test/test_extregistry.py	(original)
+++ pypy/dist/pypy/rpython/test/test_extregistry.py	Tue Feb 28 17:30:48 2006
@@ -7,6 +7,7 @@
 from pypy.rpython.extregistry import register_metatype
 from pypy.annotation import model as annmodel
 from pypy.annotation.annrpython import RPythonAnnotator
+from pypy.translator.translator import TranslationContext
 
 def dummy(): 
     raiseNameError
@@ -116,4 +117,18 @@
     a = RPythonAnnotator()
     s = a.build_types(func, [RealClass])
     assert isinstance(s, annmodel.SomeInteger)
+
+def failing_test_register_func_with_specialization():
+    def dummy_func():
+        raiseNameError
+    
+    register_func(dummy_func, annmodel.SomeInteger())
+    
+    def func():
+        return dummy_func()
+    
+    t = TranslationContext()
+    a = t.buildannotator()
+    s = a.build_types(func, []) 
+    t.buildrtyper().specialize()
     
\ No newline at end of file



More information about the Pypy-commit mailing list