diff options
author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-05-18 13:34:08 +0200 |
---|---|---|
committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-05-18 13:34:52 +0200 |
commit | 4bed64c4171194385f5995e657885a3ef35ea49b (patch) | |
tree | 8e167d95e6cde35b4f1f54de5c01691db961cbb5 /tests/requests | |
parent | 06603d112ccf1e246eb5db5bb4b9a81405eb0afd (diff) | |
download | django-4bed64c4171194385f5995e657885a3ef35ea49b.tar.gz |
Made test introduced in 566e284c pass on Python 3.
Diffstat (limited to 'tests/requests')
-rw-r--r-- | tests/requests/tests.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/requests/tests.py b/tests/requests/tests.py index 56d58c4c75..676cd05679 100644 --- a/tests/requests/tests.py +++ b/tests/requests/tests.py @@ -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', |