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():
deallocating...
(16.5+17.7j)
deallocating...
(18.8+19.96j)
(18.8125+19.9375j)
deallocating...
22
deallocating...
......@@ -369,7 +369,7 @@ def test_coerce_to_numpy():
floatcomplex[idx] = 14.4 + 15.5j
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_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