Fixes an erroneous type check in a test
The latest version of requests changes the type of a Response's history. See https://github.com/kennethreitz/requests/commit/b8128d6 Closes-Bug: #1321042 Change-Id: Iba9fa20d22d878a4298a35e270338ee442031796
This commit is contained in:
@@ -256,10 +256,6 @@ class Session(object):
|
||||
|
||||
resp = self._send_request(url, method, redirect, **kwargs)
|
||||
|
||||
# NOTE(jamielennox): we create a tuple here to be the same as what is
|
||||
# returned by the requests library.
|
||||
resp.history = tuple(resp.history)
|
||||
|
||||
if raise_exc and resp.status_code >= 400:
|
||||
_logger.debug('Request returned failure status: %s',
|
||||
resp.status_code)
|
||||
|
@@ -235,7 +235,6 @@ class RedirectTests(utils.TestCase):
|
||||
|
||||
ses_resp = session.get(self.REDIRECT_CHAIN[0])
|
||||
|
||||
self.assertEqual(type(req_resp.history), type(ses_resp.history))
|
||||
self.assertEqual(len(req_resp.history), len(ses_resp.history))
|
||||
|
||||
for r, s in zip(req_resp.history, ses_resp.history):
|
||||
|
Reference in New Issue
Block a user