From: Michael Komitee Date: Fri, 15 Feb 2013 02:33:01 +0000 (-0500) Subject: Fixing test for python3 X-Git-Tag: v1.2.0~28^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c21106222f954b77531ccbcba69407327ceab38;p=services%2Fpython-requests.git Fixing test for python3 --- 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):