Skip to content

Commit

Permalink
Strip out tests for syntax that can't work on supported Python versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Mar 11, 2012
1 parent 1fe0935 commit f67f95e
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/Zope2/App/tests/testExceptionHook.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,26 +115,6 @@ def call_exc_value(self, published, request, f, args=None, kw=None):

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
Expand Down

0 comments on commit f67f95e

Please sign in to comment.