mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
New tests fail on python 3.x because read() returns bytes and the test checks for strings
This commit is contained in:
+2
-2
@@ -178,10 +178,10 @@ class RequestsTestCase(unittest.TestCase):
|
||||
url = httpbin('digest-auth', 'auth', 'user', 'pass')
|
||||
|
||||
r = requests.get(url, auth=auth, stream=True)
|
||||
self.assertNotEqual(r.raw.read(), '')
|
||||
self.assertNotEqual(str(r.raw.read()), str(''))
|
||||
|
||||
r = requests.get(url, auth=auth, stream=False)
|
||||
self.assertEqual(r.raw.read(), '')
|
||||
self.assertEqual(str(r.raw.read()), str(''))
|
||||
|
||||
|
||||
def test_DIGESTAUTH_WRONG_HTTP_401_GET(self):
|
||||
|
||||
Reference in New Issue
Block a user