File: //opt/alt/python27/lib64/python2.7/site-packages/numpy/testing/tests/test_doctesting.pyo
�
�9Zc @` s� d Z d d l m Z m Z m Z d � Z d � Z d � Z d � Z d � Z e
d k r� d d l Z d d
l m
Z
d e d g Z e j j d
e d e
� g � n d S( s9 Doctests for NumPy-specific nose/doctest modifications
i ( t divisiont absolute_importt print_functionc C` s d S( sY
>>> 2+2
<BadExample object at 0x084D05AC> #random: may vary on your system
N( ( ( ( sV /opt/alt/python27/lib64/python2.7/site-packages/numpy/testing/tests/test_doctesting.pyt check_random_directive s c C` s d S( 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.pyt check_implicit_np s c C` s d S( 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.pyt check_whitespace_enabled s c C` s d S( 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.pyt check_empty_output s c C` s d S( 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* s t __main__N( t NumpyDoctestt s --with-numpydoctestt argvt
addplugins( t __doc__t
__future__R R R R R R R R t __name__t noset numpy.testing.noseclassesR t __file__R t coret TestProgram( ( ( sV /opt/alt/python27/lib64/python2.7/site-packages/numpy/testing/tests/test_doctesting.pyt <module> s