From 4c21106222f954b77531ccbcba69407327ceab38 Mon Sep 17 00:00:00 2001 From: Michael Komitee Date: Thu, 14 Feb 2013 21:33:01 -0500 Subject: [PATCH] Fixing test for python3 --- test_requests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_requests.py b/test_requests.py index a9230b1..c497f59 100644 --- a/test_requests.py +++ b/test_requests.py @@ -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(str(r.raw.read()), str('')) + self.assertNotEqual(r.raw.read(), b'') r = requests.get(url, auth=auth, stream=False) - self.assertEqual(str(r.raw.read()), str('')) + self.assertEqual(r.raw.read(), b'') def test_DIGESTAUTH_WRONG_HTTP_401_GET(self): -- 2.7.4