B >> 2+2 #random: may vary on your system NrrrV/opt/alt/python37/lib64/python3.7/site-packages/numpy/testing/tests/test_doctesting.pycheck_random_directivesrcCsdS)z4 >>> np.array([1,2,3]) array([1, 2, 3]) Nrrrrrcheck_implicit_npsrcCsdS)zf # whitespace after the 3 >>> 1+2 3 # whitespace before the 7 >>> 3+4 7 Nrrrrrcheck_whitespace_enableds r cCsdS)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 sr cCsdS)zZ Check skip directive The test below should not run >>> 1/0 #doctest: +SKIP Nrrrrr check_skip*sr __main__N) NumpyDoctestz--with-numpydoctest)argvZ addplugins)__doc__Z __future__rrrrrr r r __name__ZnoseZnumpy.testing.noseclassesr __file__rZcoreZ TestProgramrrrrs