ó
ú$]c           @` 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(    (    (    (    sB   lib/python2.7/site-packages/numpy/testing/tests/test_doctesting.pyt   check_random_directive
   t    c           C` s   d S(   s4   
    >>> np.array([1,2,3])
    array([1, 2, 3])
    N(    (    (    (    sB   lib/python2.7/site-packages/numpy/testing/tests/test_doctesting.pyt   check_implicit_np   R   c           C` s   d S(   sf   
    # whitespace after the 3
    >>> 1+2
    3

    # whitespace before the 7
    >>> 3+4
     7
    N(    (    (    (    sB   lib/python2.7/site-packages/numpy/testing/tests/test_doctesting.pyt   check_whitespace_enabled   R   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(    (    (    (    sB   lib/python2.7/site-packages/numpy/testing/tests/test_doctesting.pyt   check_empty_output#   R   c           C` s   d S(   sZ    Check skip directive

    The test below should not run

    >>> 1/0 #doctest: +SKIP
    N(    (    (    (    sB   lib/python2.7/site-packages/numpy/testing/tests/test_doctesting.pyt
   check_skip-   R   t   __main__N(   t   NumpyDoctestR   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(    (    (    sB   lib/python2.7/site-packages/numpy/testing/tests/test_doctesting.pyt   <module>   s   				
		