numpy 1.22.4 Pypi GitHub Homepage
Other Docs
AttributesParametersBackRef

Attributes

package_path : str

Full path to the package to test.

package_name : str

Name of the package to test.

This class is made available as numpy.testing.Tester, and a test function is typically added to a package's __init__.py like so:

from numpy.testing import Tester
test = Tester().test

Calling this test function finds and runs all tests associated with the package and all its sub-packages.

Parameters

package : module, str or None, optional

The package to test. If a string, this should be the full path to the package. If None (default), :None:None:`package` is set to the module from which NoseTester is initialized.

raise_warnings : None, str or sequence of warnings, optional

This specifies which warnings to configure as 'raise' instead of being shown once during the test execution. Valid strings are:

depth : int, optional

If :None:None:`package` is None, then this can be used to initialize from the module of the caller of (the caller of (...)) the code that initializes NoseTester . Default of 0 means the module of the immediate caller; higher values are useful for utility routines that want to initialize NoseTester objects on behalf of other code.

Nose test runner.

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

numpy.testing._private.nosetester.NoseTester

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/testing/_private/nosetester.py#112
type: <class 'type'>
Commit: