##// END OF EJS Templates
Walter's ipipe patch #8:...
Walter's ipipe patch #8: Attribute names return from __xattr__() can now end with "()", which will call the attribute as a method and use the return value. ifile now subclasses path.path. ifiles are now displayed in differnet color depending on whether the ifile is a file or a directory.

File last commit:

r190:bc4a676a
r237:ebb7d12a
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)