Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Take raiseHttpErrors into account on submit
If an HTTPError is raised on `browser.submit`, it should only be reraised to the user if `browser.raiseHttpErrors=True`. This behavior already applies to `browser.open`, thus it is expected to apply to `browser.submit` as well.
- Loading branch information
8596a29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope there was a test for this in a separate commit, otherwise the fix is going to be lost when I merge the py3 branch.
8596a29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, found the test in commit b7a6959.
It's giving me a bit of trouble, since WebTest-based zope.testbrowser from the py3 branch doesn't have a
.mech_browser
attribute any more.