~ipython-contrib/+junk/ipython-zmq

« back to all changes in this revision

Viewing changes to test/manualtest_repr_tb.py

  • Committer: ville
  • Date: 2008-02-16 09:50:47 UTC
  • mto: (0.12.1 ipython_main)
  • mto: This revision was merged to the branch mainline in revision 990.
  • Revision ID: ville@ville-pc-20080216095047-500x6dluki1iz40o
initialization (no svn history)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
"""This should be run directly from ipython, and it should NOT crash.
 
2
 
 
3
It can't currently be run via runtests b/c exception handling changes there,
 
4
and this is precisely testing exception handling problems."""
 
5
 
 
6
ipmagic('xmode verbose')
 
7
 
 
8
src = """
 
9
class suck(object):
 
10
    def __repr__(self):
 
11
        raise ValueError("who needs repr anyway")
 
12
 
 
13
suck()
 
14
"""
 
15
 
 
16
__IPYTHON__.runlines(src)