Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
a04410bd
Commit
a04410bd
authored
Feb 24, 2017
by
Jason Rhinelander
Committed by
Wenzel Jakob
Feb 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workaround style check false positive
parent
231e1678
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
tests/test_kwargs_and_defaults.py
+1
-1
No files found.
tests/test_kwargs_and_defaults.py
View file @
a04410bd
...
@@ -35,7 +35,7 @@ def test_named_arguments(msg):
...
@@ -35,7 +35,7 @@ def test_named_arguments(msg):
# noinspection PyArgumentList
# noinspection PyArgumentList
kw_func2
(
x
=
5
,
y
=
10
,
z
=
12
)
kw_func2
(
x
=
5
,
y
=
10
,
z
=
12
)
assert
excinfo
.
match
(
assert
excinfo
.
match
(
r'(?s)^kw_func2\(\): incompatible.*Invoked with: kwargs: ((x=5|y=10|z=12)(, |$)){3}$'
)
r'(?s)^kw_func2\(\): incompatible.*Invoked with: kwargs: ((x=5|y=10|z=12)(, |$))
'
+
'
{3}$'
)
assert
kw_func4
()
==
"{13 17}"
assert
kw_func4
()
==
"{13 17}"
assert
kw_func4
(
myList
=
[
1
,
2
,
3
])
==
"{1 2 3}"
assert
kw_func4
(
myList
=
[
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