Commit 65d9b94d authored by Hanno Schlichting's avatar Hanno Schlichting

Made ZPublisher tests compatible with Python 2.7.

parent 5ed0b330
...@@ -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
......
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment