| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/numpy/testing/tests/__pycache__/ |
Upload File : |
�
���cC � � � d Z d� Zd� Zd� Zd� Zd� Zedk r6ddlZdd lm Z d
e
dgZej �
e e � � g�� � dS dS )
z9 Doctests for NumPy-specific nose/doctest modifications
c � � dS )zY
>>> 2+2
<BadExample object at 0x084D05AC> #random: may vary on your system
N� r � �E/usr/lib/python3/dist-packages/numpy/testing/tests/test_doctesting.py�check_random_directiver � � � � r c � � dS )z4
>>> np.array([1,2,3])
array([1, 2, 3])
Nr r r r �check_implicit_npr r r c � � dS )zf
# whitespace after the 3
>>> 1+2
3
# whitespace before the 7
>>> 3+4
7
Nr r r r �check_whitespace_enabledr r r c � � dS )a 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
Nr r r r �check_empty_outputr
! r r c � � dS )zZ Check skip directive
The test below should not run
>>> 1/0 #doctest: +SKIP
Nr r r r �
check_skipr + r r �__main__� N)�NumpyDoctest� z--with-numpydoctest)�argv�
addplugins)�__doc__r r r r
r �__name__�nose�numpy.testing.noseclassesr �__file__r �core�TestProgramr r r �<module>r s� ��� �� � �� � � � � �� � �� � � �z����K�K�K�6�6�6�6�6�6���/�0�D��I���t�����0@��A�A�A�A�A� �r