[Zope-Checkins] SVN: Zope/trunk/src/Zope2/App/tests/testExceptionHook.py Strip out tests for syntax that can't work on supported Python versions.
Tres Seaver
cvs-admin at zope.org
Sun Mar 11 16:29:41 UTC 2012
Log message for revision 124565:
Strip out tests for syntax that can't work on supported Python versions.
Changed:
U Zope/trunk/src/Zope2/App/tests/testExceptionHook.py
-=-
Modified: Zope/trunk/src/Zope2/App/tests/testExceptionHook.py
===================================================================
--- Zope/trunk/src/Zope2/App/tests/testExceptionHook.py 2012-03-11 07:12:01 UTC (rev 124564)
+++ Zope/trunk/src/Zope2/App/tests/testExceptionHook.py 2012-03-11 16:29:36 UTC (rev 124565)
@@ -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