projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8836c4b
)
test fix
author
Kenneth Reitz
<me@kennethreitz.com>
Wed, 26 Oct 2011 22:42:58 +0000
(18:42 -0400)
committer
Kenneth Reitz
<me@kennethreitz.com>
Wed, 26 Oct 2011 22:42:58 +0000
(18:42 -0400)
test_requests.py
patch
|
blob
|
history
diff --git
a/test_requests.py
b/test_requests.py
index 82f9595437d6846a08a2e7b6399aa560467706ee..e68493e15ec43897e960095eb197332bba5a52ea 100755
(executable)
--- a/
test_requests.py
+++ b/
test_requests.py
@@
-10,6
+10,7
@@
import unittest
import requests
import envoy
+from urllib2 import HTTPError
try:
import omnijson as json
@@
-239,7
+240,7
@@
class RequestsTestSuite(unittest.TestCase):
def test_status_raising(self):
r = requests.get(httpbin('status', '404'))
- self.assertRaises(
requests.
HTTPError, r.raise_for_status)
+ self.assertRaises(HTTPError, r.raise_for_status)
r = requests.get(httpbin('status', '200'))
self.assertFalse(r.error)