SVN: Zope/branches/2.13/src/Zope2/App/tests/testExceptionHook.py Backport r124565 from the trunk.
Tres Seaver <[email protected]> Sun, 11 Mar 2012 12:45:03 -0400 (EDT)
| Newsgroups | gmane.comp.web.zope.cvs |
|---|---|
| Message-ID | <[email protected]> |
Log message for revision 124569:
Backport r124565 from the trunk.
Changed:
U Zope/branches/2.13/src/Zope2/App/tests/testExceptionHook.py
-=-
Modified: Zope/branches/2.13/src/Zope2/App/tests/testExceptionHook.py
===================================================================
--- Zope/branches/2.13/src/Zope2/App/tests/testExceptionHook.py 2012-03-11 16:44:05 UTC (rev 124568)
+++ Zope/branches/2.13/src/Zope2/App/tests/testExceptionHook.py 2012-03-11 16:44:59 UTC (rev 124569)
@@ -115,26 +115,6 @@
class ExceptionHookTest(ExceptionHookTestCase):
- def testStringException1(self):
- from zExceptions import Unauthorized
- def f():
- raise 'Unauthorized', 'x'
- if sys.version_info < (2, 6):
- self.assertRaises(Unauthorized, self.call, None, None, f)
- else:
- # Raising a string exception causes a TypeError on Python 2.6
- self.assertRaises(TypeError, self.call, None, None, f)
-
- def testStringException2(self):
- from zExceptions import Redirect
- def f():
- raise 'Redirect', 'x'
- if sys.version_info < (2, 6):
- self.assertRaises(Redirect, self.call, None, None, f)
- else:
- # Raising a string exception causes a TypeError on Python 2.6
- self.assertRaises(TypeError, self.call, None, None, f)
-
def testSystemExit(self):
def f():
raise SystemExit, 1
_______________________________________________
Zope-Checkins maillist - [email protected]
https://mail.zope.org/mailman/listinfo/zope-checkins