Skip to content

New numpy version (1.14) breaks our sphinx docs

Job #142109 failed for f1807406:

Document: guide
---------------
**********************************************************************
File "guide.rst", line 82, in blitztest
Failed example:
    print(a)
Expected:
    [ 3.2   6.14]
Got:
    [3.2  6.14]
**********************************************************************
File "guide.rst", line 97, in blitztest
Failed example:
    print(npy)
Expected:
    [ 3.+4.j  2.+2.j]
Got:
    [3.+4.j 2.+2.j]
**********************************************************************
1 items had failures:
   2 of  30 in blitztest
30 tests in 1 items.
28 passed and 2 failed.
***Test Failed*** 2 failures.

This is not a recommended way to test values in doctests since they are prone to fail. Please see this link https://docs.python.org/2/library/doctest.html#warnings which shows which ways are testing are vulnerable and what are the workarounds.