##// END OF EJS Templates
All code startup related things are working....
All code startup related things are working. * Implemented 'ipython -c "a=10"' syntax. * Implemented 'ipython foo.ipy' syntax that handles both .py and .ipy. * Implemented -i flag that forces interactive if either of the above two are active. These things simulate how python itself handles these things.

File last commit:

r190:bc4a676a
r2253:d0e3ce16
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)