Permalink
Browse files

Fix a silly doctest

  • Loading branch information...
1 parent 855fa44 commit 34bf0151263fa07f425fa7b5162adb65bc322f96 @markflorisson markflorisson committed Mar 31, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/run/numpy_test.pyx
@@ -509,9 +509,9 @@ def test_fused_ndarray_dtype(np.ndarray[cython.floating, ndim=1] a):
>>> sorted(test_fused_ndarray_dtype.__signatures__)
['double', 'float']
>>> test_fused_ndarray_dtype[cython.double](np.arange(10, dtype=np.float64))
- ndarray[double, ndim=1] ndarray[double, ndim=1] 5.0 6.0
+ ndarray[double,ndim=1] ndarray[double,ndim=1] 5.0 6.0
>>> test_fused_ndarray_dtype[cython.float](np.arange(10, dtype=np.float32))
- ndarray[float, ndim=1] ndarray[float, ndim=1] 5.0 6.0
+ ndarray[float,ndim=1] ndarray[float,ndim=1] 5.0 6.0
"""
cdef np.ndarray[cython.floating, ndim=1] b = a
print cython.typeof(a), cython.typeof(b), a[5], b[6]

0 comments on commit 34bf015

Please sign in to comment.