##// END OF EJS Templates
utils.localinterfaces: Uniquify LOCAL_IPS...
utils.localinterfaces: Uniquify LOCAL_IPS On my Python 3.2.3 system, I get: >>> socket.gethostbyname_ex('localhost') ('localhost', [], ['127.0.0.1', '127.0.0.1']) After de-duplicating, LOCAL_IPS[1] (if it exists) will be a non-local IP address that might be useful to a remote host (it might also be '0.0.0.0', but I'll worry about that later).

File last commit:

r2492:7d1b5074
r9248:bb4531ea
Show More
iptest
24 lines | 588 B | text/plain | TextLexer
Fernando Perez
Added new script to test ipython itself.
r1564 #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""IPython Test Suite Runner.
"""
Fernando Perez
Give good error message when starting tests if nose is missing.
r2492 # The tests can't even run if nose isn't available, so might as well give the
# user a civilized error message in that case.
Fernando Perez
Added new script to test ipython itself.
r1564
Fernando Perez
Give good error message when starting tests if nose is missing.
r2492 try:
import nose
except ImportError:
error = """\
ERROR: The IPython test suite requires nose to run.
Please install nose on your system first and try again.
For information on installing nose, see:
http://somethingaboutorange.com/mrl/projects/nose
Exiting."""
import sys
print >> sys.stderr, error
else:
from IPython.testing import iptest
iptest.main()