Skip to content

Commit

Permalink
fix remaining test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
benji-york committed Jun 20, 2006
1 parent eb23b9d commit de54fec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ You can also go back:
>>> browser.url
'http://localhost/@@/testbrowser/notitle.html'
>>> browser.goBack()
>>> browser.url # XXX ERROR HERE
>>> browser.url
'http://localhost/@@/testbrowser/simple.html'


Expand Down
7 changes: 1 addition & 6 deletions browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,8 @@ def open(self, url, data=None):
if 'Status' in self.headers:
code, msg = self.headers['Status'].split(' ', 1)
code = int(code)
fp = self.mech_browser.open(self.mech_browser.request)
if code >= 400:
raise urllib2.HTTPError(url, code, msg, self.headers, fp)

# if code >= 300: import pdb;pdb.set_trace()
raise urllib2.HTTPError(url, code, msg, self.headers, fp=None)

def _start_timer(self):
self.timer.start()
Expand Down Expand Up @@ -301,7 +298,6 @@ def _findByLabel(self, label, forms, include_subcontrols=False):
matches = re.compile(r'(^|\b|\W)%s(\b|\W|$)'
% re.escape(compressText(label))).search
found = []
# import pdb;pdb.set_trace()
for f in forms:
for control in f.controls:
phantom = control.type in ('radio', 'checkbox')
Expand All @@ -325,7 +321,6 @@ def _findByLabel(self, label, forms, include_subcontrols=False):
if matches(l.text):
found.append((control, f))
break
# if len(found) > 1: import pdb;pdb.set_trace()
return found

def _findByName(self, name, forms):
Expand Down

0 comments on commit de54fec

Please sign in to comment.