Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix upload exit code #405

Merged
merged 4 commits into from
Sep 24, 2018
Merged

Fix upload exit code #405

merged 4 commits into from
Sep 24, 2018

Conversation

di
Copy link
Member

@di di commented Sep 24, 2018

Fixes #403, this was accidentally added in #395.

Also adds/fixes some tests for the upload command.

The assertion on the exception message was never being run
In the event that the upload is successful, the return should be
something falsey (such as the implicit None) as this value will
eventually be used to determine the exit code.
This was added accidentally in pypa#395 and was missed on review.
@codecov
Copy link

codecov bot commented Sep 24, 2018

Codecov Report

Merging #405 into master will increase coverage by 1.89%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #405      +/-   ##
==========================================
+ Coverage   76.09%   77.99%   +1.89%     
==========================================
  Files          14       14              
  Lines         728      727       -1     
  Branches      104      104              
==========================================
+ Hits          554      567      +13     
+ Misses        146      128      -18     
- Partials       28       32       +4
Impacted Files Coverage Δ
twine/commands/upload.py 75% <ø> (+21.93%) ⬆️
twine/wininst.py 31.57% <0%> (ø) ⬆️
twine/utils.py 83.6% <0%> (+1.63%) ⬆️
twine/settings.py 93.1% <0%> (+1.72%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 48adf29...dfc523e. Read the comment docs.

@theacodes theacodes merged commit c67ace5 into pypa:master Sep 24, 2018
@di di deleted the fix-upload-exit-code branch September 24, 2018 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exits with status code 1 even though it was successful
2 participants