o 6aC@sndZddZddZddZddZd d Zed kr5d d lZd dlm Z de dgZ ej j e e gdd Sd S)z9 Doctests for NumPy-specific nose/doctest modifications cCdS)zY >>> 2+2 #random: may vary on your system NrrrE/usr/lib/python3/dist-packages/numpy/testing/tests/test_doctesting.pycheck_random_directivercCr)z4 >>> np.array([1,2,3]) array([1, 2, 3]) Nrrrrrcheck_implicit_nprrcCr)zf # whitespace after the 3 >>> 1+2 3 # whitespace before the 7 >>> 3+4 7 Nrrrrrcheck_whitespace_enabledrrcCr)a Check that no output does not cause an error. This is related to nose bug 445; the numpy plugin changed the doctest-result-variable default and therefore hit this bug: http://code.google.com/p/python-nose/issues/detail?id=445 >>> a = 10 Nrrrrrcheck_empty_output!rrcCr)zZ Check skip directive The test below should not run >>> 1/0 #doctest: +SKIP Nrrrrr check_skip+rr __main__N) NumpyDoctestz--with-numpydoctest)argv addplugins)__doc__rrrrr __name__nosenumpy.testing.noseclassesr __file__rcore TestProgramrrrrs