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
Xavier Thompson
cython
Commits
72bdc071
Commit
72bdc071
authored
9 years ago
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix and extend error test after allowing new PEP 448 unpacking syntax
parent
6511e905
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
tests/errors/callargs.pyx
tests/errors/callargs.pyx
+8
-3
No files found.
tests/errors/callargs.pyx
View file @
72bdc071
...
...
@@ -7,16 +7,21 @@ args = (1,2,3)
kwargs
=
{
u"test"
:
"toast"
}
def
test
():
# ok
f
(
1
,
2
,
c
=
3
,
*
args
,
d
=
5
,
**
kwargs
,
**
kwargs
)
f
(
1
,
2
,
c
=
3
,
*
args
,
d
=
5
,
**
kwargs
,
x
=
6
)
f
(
1
,
2
,
**
kwargs
,
c
=
3
)
f
(
1
,
2
,
c
=
3
,
*
args
,
*
args
,
**
kwargs
)
f
(
*
args
,
1
,
2
,
3
)
# errors
f
(
**
kwargs
,
1
,
2
,
c
=
3
)
f
(
*
args
,
**
kwargs
,
*
args
)
f
(
1
,
2
,
c
=
3
,
*
args
,
**
kwargs
,
*
args
)
f
(
1
,
2
,
c
=
3
,
*
args
,
d
=
5
,
**
kwargs
,
**
kwargs
)
f
(
1
,
2
,
c
=
3
,
*
args
,
d
=
5
,
**
kwargs
,
x
=
6
)
f
(
1
=
2
)
# too bad we don't get more errors here ...
_ERRORS
=
u"""
1
0:13: Non-keyword arg following star-
arg
1
7:16: Non-keyword arg following keyword
arg
"""
This diff is collapsed.
Click to expand it.
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