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
33e01738
Commit
33e01738
authored
May 12, 2019
by
Josh Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
posonly: fix test for some python versions
parent
24941cb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tests/run/posonly.pyx
tests/run/posonly.pyx
+4
-4
No files found.
tests/run/posonly.pyx
View file @
33e01738
...
@@ -122,9 +122,9 @@ def test_use_positional_as_keyword2(a, /, b):
...
@@ -122,9 +122,9 @@ def test_use_positional_as_keyword2(a, /, b):
def
test_use_positional_as_keyword3
(
a
,
b
,
/
):
def
test_use_positional_as_keyword3
(
a
,
b
,
/
):
"""
"""
>>> test_use_positional_as_keyword3(1, 2)
>>> test_use_positional_as_keyword3(1, 2)
>>> test_use_positional_as_keyword3(a=1, b=2)
>>> test_use_positional_as_keyword3(a=1, b=2)
# doctest:+ELLIPSIS
Traceback (most recent call last):
Traceback (most recent call last):
TypeError: test_use_positional_as_keyword3() got an unexpected keyword argument '
a
'
TypeError: test_use_positional_as_keyword3() got an unexpected keyword argument '
...
'
"""
"""
def
test_positional_only_and_arg_invalid_calls
(
a
,
b
,
/
,
c
):
def
test_positional_only_and_arg_invalid_calls
(
a
,
b
,
/
,
c
):
...
@@ -363,9 +363,9 @@ def test_serialization1(a, b, /):
...
@@ -363,9 +363,9 @@ def test_serialization1(a, b, /):
>>> unpickled_posonly = pickle.loads(pickled_posonly)
>>> unpickled_posonly = pickle.loads(pickled_posonly)
>>> unpickled_posonly(1, 2)
>>> unpickled_posonly(1, 2)
(1, 2)
(1, 2)
>>> unpickled_posonly(a=1, b=2)
>>> unpickled_posonly(a=1, b=2)
# doctest: +ELLIPSIS
Traceback (most recent call last):
Traceback (most recent call last):
TypeError: test_serialization1() got an unexpected keyword argument '
a
'
TypeError: test_serialization1() got an unexpected keyword argument '
...
'
"""
"""
return
(
a
,
b
)
return
(
a
,
b
)
...
...
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