[pypy-svn] r44312 - pypy/dist/pypy/annotation/test

pedronis at codespeak.net pedronis at codespeak.net
Sat Jun 16 19:37:29 CEST 2007


Author: pedronis
Date: Sat Jun 16 19:37:29 2007
New Revision: 44312

Modified:
   pypy/dist/pypy/annotation/test/test_signature.py
Log:
a skipped test about the broken interaction of genericallable and annotation()!



Modified: pypy/dist/pypy/annotation/test/test_signature.py
==============================================================================
--- pypy/dist/pypy/annotation/test/test_signature.py	(original)
+++ pypy/dist/pypy/annotation/test/test_signature.py	Sat Jun 16 19:37:29 2007
@@ -1,5 +1,5 @@
-
-from pypy.annotation.signature import _annotation_key
+import py
+from pypy.annotation.signature import _annotation_key, annotation
 
 def test__annotation_key():
     assert _annotation_key([[str]]) == ('list', ('list', str))
@@ -7,3 +7,9 @@
     for i in ([[str]], [str], (int, int, {str: [str]})):
         assert hash(_annotation_key(i))
 
+def test_genericcallable():
+    py.test.skip("this two annotations should be equal - fix!")
+    from pypy.rpython.extfunc import genericcallable
+    s1 = annotation([genericcallable([str], int)])
+    s2 = annotation([genericcallable([str], int)])
+    assert s1 == s2



More information about the Pypy-commit mailing list