ó É9Zc@`sŹdZddlmZmZmZd„Zd„Zd„Zd„Zd„Z e dkršdd l Z dd l m Z d ed gZe jjd ede ƒgƒnd S(s9 Doctests for NumPy-specific nose/doctest modifications i(tdivisiontabsolute_importtprint_functioncC`sdS(sY >>> 2+2 #random: may vary on your system N((((sV/opt/alt/python27/lib64/python2.7/site-packages/numpy/testing/tests/test_doctesting.pytcheck_random_directivescC`sdS(s4 >>> np.array([1,2,3]) array([1, 2, 3]) N((((sV/opt/alt/python27/lib64/python2.7/site-packages/numpy/testing/tests/test_doctesting.pytcheck_implicit_npscC`sdS(sf # whitespace after the 3 >>> 1+2 3 # whitespace before the 7 >>> 3+4 7 N((((sV/opt/alt/python27/lib64/python2.7/site-packages/numpy/testing/tests/test_doctesting.pytcheck_whitespace_enabledscC`sdS(s 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 N((((sV/opt/alt/python27/lib64/python2.7/site-packages/numpy/testing/tests/test_doctesting.pytcheck_empty_output scC`sdS(sZ Check skip directive The test below should not run >>> 1/0 #doctest: +SKIP N((((sV/opt/alt/python27/lib64/python2.7/site-packages/numpy/testing/tests/test_doctesting.pyt check_skip*st__main__N(t NumpyDoctestts--with-numpydoctesttargvt addplugins(t__doc__t __future__RRRRRRRRt__name__tnosetnumpy.testing.noseclassesR t__file__R tcoret TestProgram(((sV/opt/alt/python27/lib64/python2.7/site-packages/numpy/testing/tests/test_doctesting.pyts