[Zope-Checkins] CVS: Zope3/lib/python/Zope/Exceptions/tests - testExceptionFormatter.py:1.1.2.3
Guido van Rossum
guido@python.org
Wed, 27 Mar 2002 09:29:03 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Exceptions/tests
In directory cvs.zope.org:/tmp/cvs-serv11238
Modified Files:
Tag: Zope-3x-branch
testExceptionFormatter.py
Log Message:
Add test for the fix I checked in last night.
=== Zope3/lib/python/Zope/Exceptions/tests/testExceptionFormatter.py 1.1.2.2 => 1.1.2.3 ===
self.fail('no exception occurred')
+ def testQuoteLastLine(self):
+ class C: pass
+ try: raise TypeError, C()
+ except:
+ s = tb(1)
+ else:
+ self.fail('no exception occurred')
+ self.assert_(s.find('<') >= 0, s)
+ self.assert_(s.find('>') >= 0, s)