Current File : //usr/lib64/python2.7/site-packages/numpy/testing/tests/test_doctesting.pyc |
�
E�`Qc @ s� d 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( s8 Doctests for NumPy-specific nose/doctest modifications
c C s d S( sY
>>> 2+2
<BadExample object at 0x084D05AC> #random: may vary on your system
N( ( ( ( sI /usr/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( ( ( ( sI /usr/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( ( ( ( sI /usr/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( ( ( ( sI /usr/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( ( ( ( sI /usr/lib64/python2.7/site-packages/numpy/testing/tests/test_doctesting.pyt
check_skip'