##// END OF EJS Templates
Let iptest pass arguments correctly to nose (in-process or in subprocess)....
Let iptest pass arguments correctly to nose (in-process or in subprocess). Fixes https://bugs.launchpad.net/ipython/+bug/507079 Also, remove relative imports from the iptest.py module so it can be run as a script as well under 2.5 or 2.6.

File last commit:

r2397:f49f4c22
r2480:47473ae7
Show More
__init__.py
18 lines | 536 B | text/x-python | PythonLexer
"""Testing support (tools to test IPython itself).
"""
# User-level entry point for testing
def test():
"""Run the entire IPython test suite.
For fine-grained control, you should use the :file:`iptest` script supplied
with the IPython installation."""
# Do the import internally, so that this function doesn't increase total
# import time
from iptest import run_iptestall
run_iptestall()
# So nose doesn't try to run this as a test itself and we end up with an
# infinite test loop
test.__test__ = False