zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
U
P±d|ã@sjdZdd„Zdd„Zdd„Zdd„Zd    d
„Zed krfd d lZd dlm    Z    de
dgZ ej j e e    ƒgdd S)z9 Doctests for NumPy-specific nose/doctest modifications
 
cCsdS)zY
    >>> 2+2
    <BadExample object at 0x084D05AC>  #random: may vary on your system
    N©rrrúZd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\numpy/testing/tests/test_doctesting.pyÚcheck_random_directivesrcCsdS)z4
    >>> np.array([1,2,3])
    array([1, 2, 3])
    NrrrrrÚcheck_implicit_npsrcCsdS)zf
    # whitespace after the 3
    >>> 1+2
    3
 
    # whitespace before the 7
    >>> 3+4
     7
    NrrrrrÚcheck_whitespace_enabledsrcCsdS)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
    NrrrrrÚcheck_empty_output!srcCsdS)zZ Check skip directive
 
    The test below should not run
 
    >>> 1/0 #doctest: +SKIP
    NrrrrrÚ
check_skip+srÚ__main__éN)Ú NumpyDoctestÚz--with-numpydoctest)ÚargvZ
addplugins)Ú__doc__rrrrrÚ__name__ZnoseZnumpy.testing.noseclassesr
Ú__file__r ÚcoreZ TestProgramrrrrÚ<module>s