ó 2ÄČ[c@`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((((sB/tmp/pip-build-fiC0ax/numpy/numpy/testing/tests/test_doctesting.pytcheck_random_directive scC`sdS(s4 >>> np.array([1,2,3]) array([1, 2, 3]) N((((sB/tmp/pip-build-fiC0ax/numpy/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((((sB/tmp/pip-build-fiC0ax/numpy/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((((sB/tmp/pip-build-fiC0ax/numpy/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((((sB/tmp/pip-build-fiC0ax/numpy/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(((sB/tmp/pip-build-fiC0ax/numpy/numpy/testing/tests/test_doctesting.pyts