From fbc366c1a551c05d8c1ebfdf92608b7062a22622 Mon Sep 17 00:00:00 2001 From: Vinod Chandru Date: Wed, 9 Jan 2013 20:10:54 -0800 Subject: [PATCH] Fixing test to ensure it passes with python 3. --- test_requests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_requests.py b/test_requests.py index fb48323..18a51bb 100644 --- a/test_requests.py +++ b/test_requests.py @@ -262,7 +262,7 @@ class RequestsTestCase(unittest.TestCase): 'file2': ('test_requests', open(__file__, 'rb'), 'text/py-content-type')}) self.assertEqual(r.status_code, 200) - self.assertTrue("text/py-content-type" in r.request.body) + self.assertTrue(b"text/py-content-type" in r.request.body) if __name__ == '__main__': -- 2.7.4