Remove test that cannot work on Python3.

This commit is contained in:
Cory Benfield
2013-01-19 17:14:32 +00:00
parent 89c8cbbe0c
commit de32f1774f
-5
View 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()