fix browser2 to be compliant with python-requests >= 2.0

This commit is contained in:
Romain Bignon 2014-03-09 15:39:43 +01:00
commit 5e199bdfa9
3 changed files with 45 additions and 180 deletions

View file

@ -139,7 +139,7 @@ def test_brokenpost():
r = b.location(r.url + '/feed')
assert 'hello' in r.text
assert 'world' in r.text
except HTTPError, e:
except HTTPError as e:
if str(e).startswith('503 '):
raise SkipTest('Quota exceeded')
else: