numpy 1.22.4 Pypi GitHub Homepage
Other Docs
NotesParametersReturns
__call__(self, label='fast', verbose=1, extra_argv=None, doctests=False, coverage=False, durations=-1, tests=None)

Notes

Each NumPy module exposes test in its namespace to run all tests for it. For example, to run all tests for numpy.lib:

>>> np.lib.test() #doctest: +SKIP

Parameters

label : {'fast', 'full'}, optional

Identifies the tests to run. When set to 'fast', tests decorated with :None:None:`pytest.mark.slow` are skipped, when 'full', the slow marker is ignored.

verbose : int, optional

Verbosity value for test outputs, in the range 1-3. Default is 1.

extra_argv : list, optional

List with any extra arguments to pass to pytests.

doctests : bool, optional
note
coverage : bool, optional

If True, report coverage of NumPy code. Default is False. Requires installation of (pip) pytest-cov.

durations : int, optional

If < 0, do nothing, If 0, report time of all tests, if > 0, report the time of the slowest :None:None:`timer` tests. Default is -1.

tests : test or list of tests

Tests to be executed with pytest '--pyargs'

Returns

result : bool

Return True on success, false otherwise.

Run tests for module using pytest.

Examples

This example is valid syntax, but we were not able to check execution
>>> result = np.lib.test() #doctest: +SKIP
...
1023 passed, 2 skipped, 6 deselected, 1 xfailed in 10.39 seconds
This example is valid syntax, but we were not able to check execution
>>> result
True
See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /numpy/_pytesttester.py#81
type: <class 'function'>
Commit: