[Checkins] SVN: Zope/branches/2.13/src/Zope2/App/tests/testExceptionHook.py Backport r124565 from the trunk.

Tres Seaver cvs-admin at zope.org
Sun Mar 11 16:45:03 UTC 2012


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



More information about the checkins mailing list