From f453892960dded53add21f3132a22f992ba6e6a3 Mon Sep 17 00:00:00 2001 From: Johnny Goodnow Date: Thu, 24 Jan 2013 21:25:14 -0800 Subject: [PATCH] Fix python 2.6 unittest compatability issue. --- test_requests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_requests.py b/test_requests.py index 24cbc13..99e245f 100644 --- a/test_requests.py +++ b/test_requests.py @@ -60,7 +60,7 @@ class RequestsTestCase(unittest.TestCase): def test_no_content_length(self): req = requests.Request('GET', httpbin('get')).prepare() - self.assertNotIn('Content-Length', req.headers) + self.assertTrue('Content-Length' not in req.headers) def test_path_is_not_double_encoded(self): -- 2.7.4