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
Kirill Smelkov
cython
Commits
846ce05e
Commit
846ce05e
authored
Apr 30, 2021
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt some exception messages for PyPy.
parent
a35bd75c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
tests/run/pep448_test_extcall.pyx
tests/run/pep448_test_extcall.pyx
+4
-4
tests/run/tuple.pyx
tests/run/tuple.pyx
+2
-2
No files found.
tests/run/pep448_test_extcall.pyx
View file @
846ce05e
...
...
@@ -224,10 +224,10 @@ def call_g_positional():
def
call_nonseq_positional1
():
"""
>>> call_nonseq_positional1()
>>> call_nonseq_positional1()
# doctest: +ELLIPSIS
Traceback (most recent call last):
...
TypeError:
'Nothing' object is not iterable
TypeError:
...Nothing...
# TypeError: g() argument after * must be a sequence, not Nothing
"""
...
...
@@ -237,10 +237,10 @@ def call_nonseq_positional1():
def
call_nonseq_positional2
():
"""
>>> call_nonseq_positional2()
>>> call_nonseq_positional2()
# doctest: +ELLIPSIS
Traceback (most recent call last):
...
TypeError:
'Nothing' object is not iterable
TypeError:
...Nothing...
# TypeError: g() argument after * must be a sequence, not Nothing
"""
...
...
tests/run/tuple.pyx
View file @
846ce05e
...
...
@@ -117,9 +117,9 @@ def tuple_of_args_tuple(*args):
@
cython
.
test_fail_if_path_exists
(
'//SimpleCallNode//SimpleCallNode'
)
def
tuple_of_object
(
ob
):
"""
>>> tuple(type(1))
>>> tuple(type(1))
# doctest: +ELLIPSIS
Traceback (most recent call last):
TypeError:
'type' object is not iterable
TypeError:
...type...
>>> sorted(tuple(set([1, 2, 3])))
[1, 2, 3]
"""
...
...
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