Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
45ff4a54
Commit
45ff4a54
authored
Jun 18, 2016
by
Berker Peksag
Browse files
Options
Browse Files
Download
Plain Diff
Issue #27349: Merge from 3.5
parents
4c3e6877
56fe4749
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Lib/distutils/command/upload.py
Lib/distutils/command/upload.py
+1
-1
Lib/distutils/tests/test_upload.py
Lib/distutils/tests/test_upload.py
+2
-1
No files found.
Lib/distutils/command/upload.py
View file @
45ff4a54
...
...
@@ -91,7 +91,7 @@ class upload(PyPIRCCommand):
data
=
{
# action
':action'
:
'file_upload'
,
'protcol_version'
:
'1'
,
'prot
o
col_version'
:
'1'
,
# identify release
'name'
:
meta
.
get_name
(),
...
...
Lib/distutils/tests/test_upload.py
View file @
45ff4a54
...
...
@@ -130,13 +130,14 @@ class uploadTestCase(PyPIRCCommandTestCase):
# what did we send ?
headers
=
dict
(
self
.
last_open
.
req
.
headers
)
self
.
assertEqual
(
headers
[
'Content-length'
],
'216
1
'
)
self
.
assertEqual
(
headers
[
'Content-length'
],
'216
2
'
)
content_type
=
headers
[
'Content-type'
]
self
.
assertTrue
(
content_type
.
startswith
(
'multipart/form-data'
))
self
.
assertEqual
(
self
.
last_open
.
req
.
get_method
(),
'POST'
)
expected_url
=
'https://pypi.python.org/pypi'
self
.
assertEqual
(
self
.
last_open
.
req
.
get_full_url
(),
expected_url
)
self
.
assertTrue
(
b'xxx'
in
self
.
last_open
.
req
.
data
)
self
.
assertIn
(
b'protocol_version'
,
self
.
last_open
.
req
.
data
)
# The PyPI response body was echoed
results
=
self
.
get_logs
(
INFO
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment