Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
6423b766
Commit
6423b766
authored
Mar 11, 2012
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport r124565 from the trunk.
parent
c54272c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
src/Zope2/App/tests/testExceptionHook.py
src/Zope2/App/tests/testExceptionHook.py
+0
-20
No files found.
src/Zope2/App/tests/testExceptionHook.py
View file @
6423b766
...
...
@@ -115,26 +115,6 @@ class ExceptionHookTestCase(unittest.TestCase):
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment