mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Remove test that cannot work on Python3.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user