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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
08ca5148
Commit
08ca5148
authored
Apr 02, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adapted doctests for PyPy
parent
de9aec9e
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
12 deletions
+12
-12
tests/run/class_func_in_control_structures_T87.pyx
tests/run/class_func_in_control_structures_T87.pyx
+2
-2
tests/run/cython3.pyx
tests/run/cython3.pyx
+4
-4
tests/run/exectest.pyx
tests/run/exectest.pyx
+2
-2
tests/run/internal_cdef_class.pyx
tests/run/internal_cdef_class.pyx
+2
-2
tests/run/public_enum.pyx
tests/run/public_enum.pyx
+2
-2
No files found.
tests/run/class_func_in_control_structures_T87.pyx
View file @
08ca5148
...
...
@@ -2,9 +2,9 @@
__doc__
=
u"""
>>> d = Defined()
>>> n = NotDefined()
>>> n = NotDefined()
# doctest: +ELLIPSIS
Traceback (most recent call last):
NameError: name 'NotDefined' is not defined
NameError:
...
name 'NotDefined' is not defined
"""
if
True
:
...
...
tests/run/cython3.pyx
View file @
08ca5148
...
...
@@ -106,9 +106,9 @@ def list_comp_module_level():
"""
>>> module_level_lc
[0, 2, 4, 6]
>>> module_level_loopvar
>>> module_level_loopvar
# doctest: +ELLIPSIS
Traceback (most recent call last):
NameError: name 'module_level_loopvar' is not defined
NameError:
...
name 'module_level_loopvar' is not defined
"""
module_level_list_genexp
=
list
(
module_level_genexp_loopvar
*
2
for
module_level_genexp_loopvar
in
range
(
4
))
...
...
@@ -116,9 +116,9 @@ def genexpr_module_level():
"""
>>> module_level_list_genexp
[0, 2, 4, 6]
>>> module_level_genexp_loopvar
>>> module_level_genexp_loopvar
# doctest: +ELLIPSIS
Traceback (most recent call last):
NameError: name 'module_level_genexp_loopvar' is not defined
NameError:
...
name 'module_level_genexp_loopvar' is not defined
"""
def
list_comp_unknown_type
(
l
):
...
...
tests/run/exectest.pyx
View file @
08ca5148
...
...
@@ -63,9 +63,9 @@ __doc__ = u"""
>>> # errors
>>> d1, d2 = {}, {}
>>> test_dict_scope_ref(d1, d2)
>>> test_dict_scope_ref(d1, d2)
# doctest: +ELLIPSIS
Traceback (most recent call last):
NameError: name 'a' is not defined
NameError:
...
name 'a' is not defined
"""
#def test_module_scope():
...
...
tests/run/internal_cdef_class.pyx
View file @
08ca5148
...
...
@@ -20,9 +20,9 @@ def test():
>>> p = PublicType
>>> i = InternalType
>>> i = InternalType
# doctest: +ELLIPSIS
Traceback (most recent call last):
NameError: name 'InternalType' is not defined
NameError:
...
name 'InternalType' is not defined
"""
p
=
PublicType
i
=
InternalType
...
...
tests/run/public_enum.pyx
View file @
08ca5148
...
...
@@ -5,9 +5,9 @@ True
True
>>> X == 4*5 + 1
True
>>> NONPUBLIC
>>> NONPUBLIC
# doctest: +ELLIPSIS
Traceback (most recent call last):
NameError: name 'NONPUBLIC' is not defined
NameError:
...
name 'NONPUBLIC' is not defined
>>> NOWPUBLIC == 23 + 42
True
"""
...
...
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