numpy 1.22.4 Pypi GitHub Homepage
Other Docs
Parameters
run_module_suite(file_to_run=None, argv=None)

Equivalent to calling $ nosetests <argv> <file_to_run> from the command line

Parameters

file_to_run : str, optional

Path to test module, or None. By default, run the module from which this function is called.

argv : list of strings

Arguments to be passed to the nose test runner. argv[0] is ignored. All command line arguments accepted by nosetests will work. If it is the default value None, sys.argv is used.

versionadded

Run a test module.

Examples

if __name__ == "__main__" :

run_module_suite(argv=sys.argv)

at the end of a test module will run the tests when that module is called in the python interpreter.

This example is valid syntax, but we were not able to check execution
>>> run_module_suite(file_to_run="numpy/tests/test_matlib.py")  # doctest: +SKIP

from an interpreter will run all the test routine in 'test_matlib.py'.

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