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
Boxiang Sun
cython
Commits
5fe6aef5
Commit
5fe6aef5
authored
Sep 23, 2018
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into release
parents
36f9d0b8
4ee6b6ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
tests/run/import_star.pyx
tests/run/import_star.pyx
+5
-6
No files found.
tests/run/import_star.pyx
View file @
5fe6aef5
...
...
@@ -10,7 +10,7 @@ ctypedef struct MyStruct:
# (there used to be a problem getting Cython conversion code generated here)
cdef
MyStruct
_no_such_name_
=
MyStruct
(
1
,
2
,
3
)
from
libc.math
cimport
NAN
from
libc.math
cimport
M_PI
# Danger ahead!
from
sys
import
*
...
...
@@ -43,11 +43,10 @@ def test_non_cdefed_names():
return
modules
,
path
def
test_cimported_
NAN
():
def
test_cimported_
pi
():
"""
>>> from math import isnan
>>> nan = test_cimported_NAN()
>>> isnan(nan)
>>> pi = test_cimported_pi()
>>> 3.14 < pi < 3.15
True
"""
return
NAN
return
M_PI
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