Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
c117dddd
Commit
c117dddd
authored
Nov 17, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reenable some tests
parent
03c9f035
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
16 deletions
+16
-16
tests/bugs.txt
tests/bugs.txt
+0
-2
tests/run/dictcomp.pyx
tests/run/dictcomp.pyx
+8
-7
tests/run/setcomp.pyx
tests/run/setcomp.pyx
+8
-7
No files found.
tests/bugs.txt
View file @
c117dddd
...
@@ -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
tests/run/dictcomp.pyx
View file @
c117dddd
...
@@ -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
():
...
...
tests/run/setcomp.pyx
View file @
c117dddd
...
@@ -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
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment