Commit 8653218f authored by Stefan Behnel's avatar Stefan Behnel

Try to fix a doctest by removing its dependency on exact float formatting of NumPy output.

parent b2265e52
...@@ -299,7 +299,7 @@ def test_coerce_to_numpy(): ...@@ -299,7 +299,7 @@ def test_coerce_to_numpy():
deallocating... deallocating...
(16.5+17.7j) (16.5+17.7j)
deallocating... deallocating...
(18.8+19.96j) (18.8125+19.9375j)
deallocating... deallocating...
22 22
deallocating... deallocating...
...@@ -369,7 +369,7 @@ def test_coerce_to_numpy(): ...@@ -369,7 +369,7 @@ def test_coerce_to_numpy():
floatcomplex[idx] = 14.4 + 15.5j floatcomplex[idx] = 14.4 + 15.5j
doublecomplex[idx] = 16.5 + 17.7j doublecomplex[idx] = 16.5 + 17.7j
longdoublecomplex[idx] = 18.8 + 19.96j longdoublecomplex[idx] = 18.8125 + 19.9375j # x/64 to avoid float format rounding issues
h_shorts[idx] = 22 h_shorts[idx] = 22
h_doubles[idx] = 33.33 h_doubles[idx] = 33.33
......
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