Commit 5fe6aef5 authored by Stefan Behnel's avatar Stefan Behnel

Merge branch 'master' into release

parents 36f9d0b8 4ee6b6ec
...@@ -10,7 +10,7 @@ ctypedef struct MyStruct: ...@@ -10,7 +10,7 @@ ctypedef struct MyStruct:
# (there used to be a problem getting Cython conversion code generated here) # (there used to be a problem getting Cython conversion code generated here)
cdef MyStruct _no_such_name_ = MyStruct(1, 2, 3) cdef MyStruct _no_such_name_ = MyStruct(1, 2, 3)
from libc.math cimport NAN from libc.math cimport M_PI
# Danger ahead! # Danger ahead!
from sys import * from sys import *
...@@ -43,11 +43,10 @@ def test_non_cdefed_names(): ...@@ -43,11 +43,10 @@ def test_non_cdefed_names():
return modules, path return modules, path
def test_cimported_NAN(): def test_cimported_pi():
""" """
>>> from math import isnan >>> pi = test_cimported_pi()
>>> nan = test_cimported_NAN() >>> 3.14 < pi < 3.15
>>> isnan(nan)
True True
""" """
return NAN return M_PI
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment