[Zope-Checkins] SVN: Zope/branches/2.12/src/Zope2/App/tests/testExceptionHook.py Backport r124565 from the trunk.
Tres Seaver
cvs-admin at zope.org
Sun Mar 11 16:43:12 UTC 2012
Log message for revision 124567:
Backport r124565 from the trunk.
Changed:
U Zope/branches/2.12/src/Zope2/App/tests/testExceptionHook.py
-=-
Modified: Zope/branches/2.12/src/Zope2/App/tests/testExceptionHook.py
===================================================================
--- Zope/branches/2.12/src/Zope2/App/tests/testExceptionHook.py 2012-03-11 16:30:02 UTC (rev 124566)
+++ Zope/branches/2.12/src/Zope2/App/tests/testExceptionHook.py 2012-03-11 16:43:08 UTC (rev 124567)
@@ -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
More information about the Zope-Checkins
mailing list