##// 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:

r190:bc4a676a
r2480:47473ae7
Show More
manualtest_repr_tb.py
16 lines | 380 B | text/x-python | PythonLexer
/ test / manualtest_repr_tb.py
"""This should be run directly from ipython, and it should NOT crash.
It can't currently be run via runtests b/c exception handling changes there,
and this is precisely testing exception handling problems."""
ipmagic('xmode verbose')
src = """
class suck(object):
def __repr__(self):
raise ValueError("who needs repr anyway")
suck()
"""
__IPYTHON__.runlines(src)