reenable some tests
authorStefan Behnel <stefan_ml@behnel.de>
Sun, 17 Nov 2013 11:13:47 +0000 (12:13 +0100)
committerStefan Behnel <stefan_ml@behnel.de>
Sun, 17 Nov 2013 11:13:47 +0000 (12:13 +0100)
tests/bugs.txt
tests/run/dictcomp.pyx
tests/run/setcomp.pyx

index 1f84f5d..96b42a9 100644 (file)
@@ -50,6 +50,4 @@ pyregr.test_tuple
 all
 any
 builtin_sorted
-dictcomp
 inlined_generator_expressions
-setcomp
index 08a6dca..7bdc8bc 100644 (file)
@@ -15,12 +15,13 @@ def dictcomp():
     assert x == 'abc' # do not leak!
     return result
 
-@cython.test_fail_if_path_exists(
-    "//GeneratorExpressionNode",
-    "//SimpleCallNode")
-@cython.test_assert_path_exists(
-    "//ComprehensionNode",
-    "//ComprehensionNode//DictComprehensionAppendNode")
+# enable when inlined:
+#@cython.test_fail_if_path_exists(
+#    "//GeneratorExpressionNode",
+#    "//SimpleCallNode")
+#@cython.test_assert_path_exists(
+#    "//ComprehensionNode",
+#    "//ComprehensionNode//DictComprehensionAppendNode")
 def genexpr():
     """
     >>> type(genexpr()) is dict
@@ -37,7 +38,7 @@ def genexpr():
 
 cdef class A:
     def __repr__(self): return u"A"
-    def __richcmp__(one, other, op): return one is other
+    def __richcmp__(one, other, int op): return one is other
     def __hash__(self): return id(self) % 65536
 
 def typed_dictcomp():
index ea6a290..fc9021c 100644 (file)
@@ -20,12 +20,13 @@ def setcomp():
     assert x == 'abc' # do not leak
     return result
 
-@cython.test_fail_if_path_exists(
-    "//GeneratorExpressionNode",
-    "//SimpleCallNode")
-@cython.test_assert_path_exists(
-    "//ComprehensionNode",
-    "//ComprehensionNode//ComprehensionAppendNode")
+# enable when inlined:
+#@cython.test_fail_if_path_exists(
+#    "//GeneratorExpressionNode",
+#    "//SimpleCallNode")
+#@cython.test_assert_path_exists(
+#    "//ComprehensionNode",
+#    "//ComprehensionNode//ComprehensionAppendNode")
 def genexp_set():
     """
     >>> type(genexp_set()) is _set
@@ -42,7 +43,7 @@ def genexp_set():
 
 cdef class A:
     def __repr__(self): return u"A"
-    def __richcmp__(one, other, op): return one is other
+    def __richcmp__(one, other, int op): return one is other
     def __hash__(self): return id(self) % 65536
 
 def typed():