[Zope3-checkins]
SVN: Zope3/branches/3.2/src/zope/testbrowser/browser.py
backport testbrowser bug fix (from revision 66048)
Benji York
benji at zope.com
Wed Mar 15 16:56:01 EST 2006
Log message for revision 66049:
backport testbrowser bug fix (from revision 66048)
Changed:
U Zope3/branches/3.2/src/zope/testbrowser/browser.py
-=-
Modified: Zope3/branches/3.2/src/zope/testbrowser/browser.py
===================================================================
--- Zope3/branches/3.2/src/zope/testbrowser/browser.py 2006-03-15 21:43:56 UTC (rev 66048)
+++ Zope3/branches/3.2/src/zope/testbrowser/browser.py 2006-03-15 21:56:00 UTC (rev 66049)
@@ -207,7 +207,15 @@
def open(self, url, data=None):
"""See zope.testbrowser.interfaces.IBrowser"""
self._start_timer()
- self.mech_browser.open(url, data)
+ try:
+ self.mech_browser.open(url, data)
+ except urllib2.HTTPError, e:
+ if e.code >= 200 and e.code <= 299:
+ # 200s aren't really errors
+ pass
+ else:
+ raise
+
self._stop_timer()
self._changed()
More information about the Zope3-Checkins
mailing list