Kaydet (Commit) 4bed64c4 authored tarafından Aymeric Augustin's avatar Aymeric Augustin

Made test introduced in 566e284c pass on Python 3.

üst 06603d11
...@@ -532,13 +532,13 @@ class RequestsTests(SimpleTestCase): ...@@ -532,13 +532,13 @@ class RequestsTests(SimpleTestCase):
# There are cases in which the multipart data is related instead of # There are cases in which the multipart data is related instead of
# being a binary upload, in which case it should still be accessible # being a binary upload, in which case it should still be accessible
# via body. # via body.
payload_data = "\r\n".join([ payload_data = b"\r\n".join([
'--boundary', b'--boundary',
'Content-ID: id; name="name"', b'Content-ID: id; name="name"',
'', b'',
'value', b'value',
'--boundary--' b'--boundary--'
'']) b''])
payload = FakePayload(payload_data) payload = FakePayload(payload_data)
request = WSGIRequest({'REQUEST_METHOD': 'POST', request = WSGIRequest({'REQUEST_METHOD': 'POST',
'CONTENT_TYPE': 'multipart/related; boundary=boundary', 'CONTENT_TYPE': 'multipart/related; boundary=boundary',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment