New tests fail on python 3.x because read() returns bytes and the test checks for strings

This commit is contained in:
Michael Komitee
2013-02-13 22:42:56 -05:00
parent 69ba64380b
commit df5dcb8a7d
+2 -2
View File
@@ -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):