##// END OF EJS Templates
Fix printing of argparse help to go to stdout by default....
Fix printing of argparse help to go to stdout by default. Our help message was tricky to page because it went to stderr (argparse default, which I don't particularly like). Also fixed encoding marker, which was incorrect. The problem exists in other files too, the right syntax is: # coding: utf-8 (with 'coding', not 'encoding'). See http://www.python.org/dev/peps/pep-0263

File last commit:

r190:bc4a676a
r2361:ccf5098a
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)