Made test introduced in 566e284c pass on Python 3.

This commit is contained in:
Aymeric Augustin 2013-05-18 13:34:08 +02:00
parent 06603d112c
commit 4bed64c417
1 changed files with 7 additions and 7 deletions

View File

@ -532,13 +532,13 @@ class RequestsTests(SimpleTestCase):
# There are cases in which the multipart data is related instead of
# being a binary upload, in which case it should still be accessible
# via body.
payload_data = "\r\n".join([
'--boundary',
'Content-ID: id; name="name"',
'',
'value',
'--boundary--'
''])
payload_data = b"\r\n".join([
b'--boundary',
b'Content-ID: id; name="name"',
b'',
b'value',
b'--boundary--'
b''])
payload = FakePayload(payload_data)
request = WSGIRequest({'REQUEST_METHOD': 'POST',
'CONTENT_TYPE': 'multipart/related; boundary=boundary',