aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_upload_docs.py
diff options
context:
space:
mode:
authorFlorian Schulze <florian.schulze@gmx.net>2017-03-11 14:45:15 +0100
committerFlorian Schulze <florian.schulze@gmx.net>2017-03-11 14:53:03 +0100
commit62fc6681509f04ba7ee12e87d6ac5d6056214fa8 (patch)
treeb5e0f991210b66e39b8afa33ba0d56f65a663dcd /setuptools/tests/test_upload_docs.py
parentc4ff7cc6551097d513d310fac6d0c099b1afa32e (diff)
downloadexternal_python_setuptools-62fc6681509f04ba7ee12e87d6ac5d6056214fa8.tar.gz
external_python_setuptools-62fc6681509f04ba7ee12e87d6ac5d6056214fa8.tar.bz2
external_python_setuptools-62fc6681509f04ba7ee12e87d6ac5d6056214fa8.zip
Fix documentation upload by fixing content_type in _build_multipart on Python 3.x.
Diffstat (limited to 'setuptools/tests/test_upload_docs.py')
-rw-r--r--setuptools/tests/test_upload_docs.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/setuptools/tests/test_upload_docs.py b/setuptools/tests/test_upload_docs.py
index 5d50bb0b..a26e32a6 100644
--- a/setuptools/tests/test_upload_docs.py
+++ b/setuptools/tests/test_upload_docs.py
@@ -64,6 +64,8 @@ class TestUploadDocsTest:
)
body, content_type = upload_docs._build_multipart(data)
assert 'form-data' in content_type
+ assert "b'" not in content_type
+ assert 'b"' not in content_type
assert isinstance(body, bytes)
assert b'foo' in body
assert b'content' in body