Remove test that cannot work on Python3.
authorCory Benfield <lukasaoz@gmail.com>
Sat, 19 Jan 2013 17:14:32 +0000 (17:14 +0000)
committerCory Benfield <lukasaoz@gmail.com>
Sat, 19 Jan 2013 17:14:32 +0000 (17:14 +0000)
test_requests.py

index 3562318..425e357 100644 (file)
@@ -268,11 +268,6 @@ class RequestsTestCase(unittest.TestCase):
         self.assertEqual(r.status_code, 200)
         self.assertTrue(b"text/py-content-type" in r.request.body)
 
-    def test_content_length_is_string_for_file_objects(self):
-        r = requests.Request(url='http://httpbin.org/post',
-                             data=StringIO.StringIO('abc')).prepare()
-        self.assertTrue(type(r.headers['Content-Length']) == str)
-
 
 if __name__ == '__main__':
     unittest.main()