[Zope3-checkins]
SVN: Zope3/branches/benji-integrate-new-mechanize/src/
fixed all test failures but one
Benji York
cvs-admin at zope.org
Mon Jun 19 16:29:51 EDT 2006
Log message for revision 68765:
fixed all test failures but one
Changed:
U Zope3/branches/benji-integrate-new-mechanize/src/mechanize/_mechanize.py
U Zope3/branches/benji-integrate-new-mechanize/src/zope/app/apidoc/browser/README.txt
U Zope3/branches/benji-integrate-new-mechanize/src/zope/app/testing/functional.py
U Zope3/branches/benji-integrate-new-mechanize/src/zope/publisher/publish.py
U Zope3/branches/benji-integrate-new-mechanize/src/zope/testbrowser/README.txt
U Zope3/branches/benji-integrate-new-mechanize/src/zope/testbrowser/browser.py
-=-
Modified: Zope3/branches/benji-integrate-new-mechanize/src/mechanize/_mechanize.py
===================================================================
--- Zope3/branches/benji-integrate-new-mechanize/src/mechanize/_mechanize.py 2006-06-19 19:20:29 UTC (rev 68764)
+++ Zope3/branches/benji-integrate-new-mechanize/src/mechanize/_mechanize.py 2006-06-19 20:29:47 UTC (rev 68765)
@@ -186,6 +186,7 @@
success = True
try:
+# if 'non-existent' in url: import pdb;pdb.set_trace()
response = UserAgent.open(self, self.request, data)
except urllib2.HTTPError, error:
success = False
Modified: Zope3/branches/benji-integrate-new-mechanize/src/zope/app/apidoc/browser/README.txt
===================================================================
--- Zope3/branches/benji-integrate-new-mechanize/src/zope/app/apidoc/browser/README.txt 2006-06-19 19:20:29 UTC (rev 68764)
+++ Zope3/branches/benji-integrate-new-mechanize/src/zope/app/apidoc/browser/README.txt 2006-06-19 20:29:47 UTC (rev 68765)
@@ -26,7 +26,7 @@
... except HTTPError, error:
... pass
- >>> print error.read() # XXX error here
+ >>> print browser.contents
<...
<h1 class="details-header">
Page Not Found
Modified: Zope3/branches/benji-integrate-new-mechanize/src/zope/app/testing/functional.py
===================================================================
--- Zope3/branches/benji-integrate-new-mechanize/src/zope/app/testing/functional.py 2006-06-19 19:20:29 UTC (rev 68764)
+++ Zope3/branches/benji-integrate-new-mechanize/src/zope/app/testing/functional.py 2006-06-19 20:29:47 UTC (rev 68765)
@@ -588,6 +588,7 @@
omit=('x-content-type-warning', 'x-powered-by'),
)
+# import pdb;pdb.set_trace()
publish(request, handle_errors=handle_errors)
self.saveCookies(response)
setSite(old_site)
Modified: Zope3/branches/benji-integrate-new-mechanize/src/zope/publisher/publish.py
===================================================================
--- Zope3/branches/benji-integrate-new-mechanize/src/zope/publisher/publish.py 2006-06-19 19:20:29 UTC (rev 68764)
+++ Zope3/branches/benji-integrate-new-mechanize/src/zope/publisher/publish.py 2006-06-19 20:29:47 UTC (rev 68765)
@@ -114,6 +114,7 @@
return obj(*args)
def publish(request, handle_errors=True):
+# if 'non-existent' in str(request.URL): import pdb;pdb.set_trace()
try: # finally to clean up to_raise and close request
to_raise = None
while True:
Modified: Zope3/branches/benji-integrate-new-mechanize/src/zope/testbrowser/README.txt
===================================================================
--- Zope3/branches/benji-integrate-new-mechanize/src/zope/testbrowser/README.txt 2006-06-19 19:20:29 UTC (rev 68764)
+++ Zope3/branches/benji-integrate-new-mechanize/src/zope/testbrowser/README.txt 2006-06-19 20:29:47 UTC (rev 68765)
@@ -283,7 +283,7 @@
>>> browser.url
'http://localhost/@@/testbrowser/notitle.html'
>>> browser.goBack()
- >>> browser.url
+ >>> browser.url # XXX ERROR HERE
'http://localhost/@@/testbrowser/simple.html'
Modified: Zope3/branches/benji-integrate-new-mechanize/src/zope/testbrowser/browser.py
===================================================================
--- Zope3/branches/benji-integrate-new-mechanize/src/zope/testbrowser/browser.py 2006-06-19 19:20:29 UTC (rev 68764)
+++ Zope3/branches/benji-integrate-new-mechanize/src/zope/testbrowser/browser.py 2006-06-19 20:29:47 UTC (rev 68765)
@@ -237,7 +237,7 @@
if code >= 400:
raise urllib2.HTTPError(url, code, msg, self.headers, fp)
- if code >= 300: import pdb;pdb.set_trace()
+# if code >= 300: import pdb;pdb.set_trace()
def _start_timer(self):
self.timer.start()
More information about the Zope3-Checkins
mailing list