Commit c117dddd authored by Stefan Behnel's avatar Stefan Behnel

reenable some tests

parent 03c9f035
...@@ -50,6 +50,4 @@ pyregr.test_tuple ...@@ -50,6 +50,4 @@ pyregr.test_tuple
all all
any any
builtin_sorted builtin_sorted
dictcomp
inlined_generator_expressions inlined_generator_expressions
setcomp
...@@ -15,12 +15,13 @@ def dictcomp(): ...@@ -15,12 +15,13 @@ def dictcomp():
assert x == 'abc' # do not leak! assert x == 'abc' # do not leak!
return result return result
@cython.test_fail_if_path_exists( # enable when inlined:
"//GeneratorExpressionNode", #@cython.test_fail_if_path_exists(
"//SimpleCallNode") # "//GeneratorExpressionNode",
@cython.test_assert_path_exists( # "//SimpleCallNode")
"//ComprehensionNode", #@cython.test_assert_path_exists(
"//ComprehensionNode//DictComprehensionAppendNode") # "//ComprehensionNode",
# "//ComprehensionNode//DictComprehensionAppendNode")
def genexpr(): def genexpr():
""" """
>>> type(genexpr()) is dict >>> type(genexpr()) is dict
...@@ -37,7 +38,7 @@ def genexpr(): ...@@ -37,7 +38,7 @@ def genexpr():
cdef class A: cdef class A:
def __repr__(self): return u"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 __hash__(self): return id(self) % 65536
def typed_dictcomp(): def typed_dictcomp():
......
...@@ -20,12 +20,13 @@ def setcomp(): ...@@ -20,12 +20,13 @@ def setcomp():
assert x == 'abc' # do not leak assert x == 'abc' # do not leak
return result return result
@cython.test_fail_if_path_exists( # enable when inlined:
"//GeneratorExpressionNode", #@cython.test_fail_if_path_exists(
"//SimpleCallNode") # "//GeneratorExpressionNode",
@cython.test_assert_path_exists( # "//SimpleCallNode")
"//ComprehensionNode", #@cython.test_assert_path_exists(
"//ComprehensionNode//ComprehensionAppendNode") # "//ComprehensionNode",
# "//ComprehensionNode//ComprehensionAppendNode")
def genexp_set(): def genexp_set():
""" """
>>> type(genexp_set()) is _set >>> type(genexp_set()) is _set
...@@ -42,7 +43,7 @@ def genexp_set(): ...@@ -42,7 +43,7 @@ def genexp_set():
cdef class A: cdef class A:
def __repr__(self): return u"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 __hash__(self): return id(self) % 65536
def typed(): def typed():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment