[Zope3-checkins] SVN: Zope3/branches/testbrowser-integration/src/zope/testbrowser/mechanize/_mechanize.py make back work

Gary Poster gary at zope.com
Fri Aug 26 20:47:39 EDT 2005


Log message for revision 38119:
  make back work
  

Changed:
  U   Zope3/branches/testbrowser-integration/src/zope/testbrowser/mechanize/_mechanize.py

-=-
Modified: Zope3/branches/testbrowser-integration/src/zope/testbrowser/mechanize/_mechanize.py
===================================================================
--- Zope3/branches/testbrowser-integration/src/zope/testbrowser/mechanize/_mechanize.py	2005-08-26 22:00:17 UTC (rev 38118)
+++ Zope3/branches/testbrowser-integration/src/zope/testbrowser/mechanize/_mechanize.py	2005-08-27 00:47:39 UTC (rev 38119)
@@ -159,6 +159,8 @@
         n: go back this number of steps (default 1 step)
 
         """
+        n = int(n) + 1 # we need to first get rid of the current page's history
+        assert n > 1
         while n:
             try:
                 self.request, self._response = self._history.pop()



More information about the Zope3-Checkins mailing list