Commit 4308e1e7 authored by Stefan Behnel's avatar Stefan Behnel

Add test for #2621.

parent 1259dc21
......@@ -10,7 +10,9 @@ 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
# Danger ahead!
from sys import *
......@@ -39,3 +41,13 @@ def test_non_cdefed_names():
>>> assert pth is not None
"""
return modules, path
def test_cimported_NAN():
"""
>>> from math import isnan
>>> nan = test_cimported_NAN()
>>> isnan(nan)
True
"""
return NAN
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