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
65d9b94d
Commit
65d9b94d
authored
Jul 05, 2010
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made ZPublisher tests compatible with Python 2.7.
parent
5ed0b330
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
doc/CHANGES.rst
doc/CHANGES.rst
+2
-0
src/ZPublisher/tests/exception_handling.txt
src/ZPublisher/tests/exception_handling.txt
+7
-4
No files found.
doc/CHANGES.rst
View file @
65d9b94d
...
@@ -11,6 +11,8 @@ http://docs.zope.org/zope2/releases/.
...
@@ -11,6 +11,8 @@ http://docs.zope.org/zope2/releases/.
Bugs Fixed
Bugs Fixed
++++++++++
++++++++++
- Made ZPublisher tests compatible with Python 2.7.
- LP #143531: Fix broken object so they give access to their state.
- LP #143531: Fix broken object so they give access to their state.
- LP #578326: Issue a warning if someone specifies a non-public permission
- LP #578326: Issue a warning if someone specifies a non-public permission
...
...
src/ZPublisher/tests/exception_handling.txt
View file @
65d9b94d
...
@@ -164,10 +164,13 @@ And the same with unicode error value.
...
@@ -164,10 +164,13 @@ And the same with unicode error value.
'basic realm="Zope2"'
'basic realm="Zope2"'
>>> browser.handleErrors = False
>>> browser.handleErrors = False
>>> browser.open('http://localhost/test_folder_1_/foo')
>>> try:
Traceback (most recent call last):
... browser.open('http://localhost/test_folder_1_/foo')
...
... except Unauthorized, e:
Unauthorized: <unprintable ... object>
... e._message == u'ERROR VALUE \u03A9'
... else:
... print "Unauthorized not raised"
True
>>> browser.contents
>>> browser.contents
Handle zExceptions.Unauthorized raised by BaseRequest.traverse. We take the
Handle zExceptions.Unauthorized raised by BaseRequest.traverse. We take the
...
...
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