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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
f77a3776
Commit
f77a3776
authored
Aug 16, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test in Py3
parent
49e8015e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests/run/dict.pyx
tests/run/dict.pyx
+3
-3
No files found.
tests/run/dict.pyx
View file @
f77a3776
...
...
@@ -86,10 +86,10 @@ def dict_call_kwargs():
def
items_of_dict_call
():
"""
>>> items_of_dict_call()
[('answer1', 42), ('answer2', 42), ('parrot1',
u'resting'), ('parrot2', u
'resting')]
[('answer1', 42), ('answer2', 42), ('parrot1',
'resting'), ('parrot2',
'resting')]
"""
kwargs
=
dict
(
parrot1
=
u
"resting"
,
answer1
=
42
)
items
=
dict
(
kwargs
.
items
(),
parrot2
=
u
"resting"
,
answer2
=
42
,
**
kwargs
).
items
()
kwargs
=
dict
(
parrot1
=
"resting"
,
answer1
=
42
)
items
=
dict
(
kwargs
.
items
(),
parrot2
=
"resting"
,
answer2
=
42
,
**
kwargs
).
items
()
return
sorted
(
items
)
...
...
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