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
8e7406a0
Commit
8e7406a0
authored
Dec 27, 2018
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Work around some PyPy test issues.
parent
f375c87a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
tests/run/struct_conversion.pyx
tests/run/struct_conversion.pyx
+4
-6
No files found.
tests/run/struct_conversion.pyx
View file @
8e7406a0
...
@@ -28,10 +28,9 @@ def test_constructor_kwds(x, y, color):
...
@@ -28,10 +28,9 @@ def test_constructor_kwds(x, y, color):
"""
"""
>>> sorted(test_constructor_kwds(1.25, 2.5, 128).items())
>>> sorted(test_constructor_kwds(1.25, 2.5, 128).items())
[('color', 128), ('x', 1.25), ('y', 2.5)]
[('color', 128), ('x', 1.25), ('y', 2.5)]
>>> test_constructor_kwds(1.25, 2.5, None)
>>> test_constructor_kwds(1.25, 2.5, None)
# doctest: +ELLIPSIS
Traceback (most recent call last):
Traceback (most recent call last):
...
TypeError:... int...
TypeError: an integer is required
"""
"""
cdef
Point
p
=
Point
(
x
=
x
,
y
=
y
,
color
=
color
)
cdef
Point
p
=
Point
(
x
=
x
,
y
=
y
,
color
=
color
)
return
p
return
p
...
@@ -41,10 +40,9 @@ def return_constructor_kwds(double x, y, color):
...
@@ -41,10 +40,9 @@ def return_constructor_kwds(double x, y, color):
"""
"""
>>> sorted(return_constructor_kwds(1.25, 2.5, 128).items())
>>> sorted(return_constructor_kwds(1.25, 2.5, 128).items())
[('color', 128), ('x', 1.25), ('y', 2.5)]
[('color', 128), ('x', 1.25), ('y', 2.5)]
>>> return_constructor_kwds(1.25, 2.5, None)
>>> return_constructor_kwds(1.25, 2.5, None)
# doctest: +ELLIPSIS
Traceback (most recent call last):
Traceback (most recent call last):
...
TypeError:... int...
TypeError: an integer is required
"""
"""
return
Point
(
x
=
x
,
y
=
y
,
color
=
color
)
return
Point
(
x
=
x
,
y
=
y
,
color
=
color
)
...
...
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