Note
This documentation is for a development version of IPython. There may be significant differences from the latest stable release (1.2.1).
IPython Test Suite Runner.
This module provides a main entry point to a user script to test IPython itself from the command line. There are two ways of running this script:
Bases: nose.plugins.base.Plugin
A nose plugin to effect our exclusions of files and directories.
Parameters: | exclude_patterns : sequence of strings, optional
|
---|
Return whether the given directory should be scanned for tests.
Return whether the given filename should be scanned for tests.
Bases: threading.Thread
Safely stop the thread.
Test to see if item is importable, and optionally check against a minimum version.
If min_version is given, the default behavior is to check against the __version__ attribute of the item, but specifying callback allows you to extract the value you are interested in. e.g:
In [1]: import sys
In [2]: from IPython.testing.iptest import test_for
In [3]: test_for('sys', (2,6), callback=lambda sys: sys.version_info)
Out[3]: True
Run the IPython test suite using nose.
This function is called when this script is not called with the form iptest all. It simply calls nose with appropriate command line flags and accepts all of the standard nose arguments.