diff options
Diffstat (limited to 'tests/utils.py')
-rw-r--r-- | tests/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/utils.py b/tests/utils.py index 93972e4..ff2834a 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -12,7 +12,7 @@ # implied. # See the License for the specific language governing permissions and # limitations under the License. -from httplib import HTTPException +from requests import RequestException from time import sleep @@ -74,7 +74,7 @@ def fake_http_connect(*code_iter, **kwargs): def getexpect(self): if self.status == -2: - raise HTTPException() + raise RequestException() if self.status == -3: return FakeConn(507) return FakeConn(100) @@ -141,7 +141,7 @@ def fake_http_connect(*code_iter, **kwargs): etag = etag_iter.next() timestamp = timestamps_iter.next() if status <= 0: - raise HTTPException() + raise RequestException() fake_conn = FakeConn(status, etag, body=kwargs.get('body', ''), timestamp=timestamp) fake_conn.connect() |