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 NameError when handling InvalidRequirement in install_req_from_req_string #6419

Merged

Conversation

rouge8
Copy link
Contributor

@rouge8 rouge8 commented Apr 18, 2019

Previously, an InvalidRequirement would raise a NameError while trying to raise an InstallationError because req was not defined.

Discovered while working on #6402.

…q_string

Previously, an InvalidRequirement would raise a NameError while trying
to raise an InstallationError because `req` was not defined.

Discovered while working on pypa#6402.
@rouge8
Copy link
Contributor Author

rouge8 commented Apr 18, 2019

@cjerdonek should I add a news file for this? It feels trivial since there are no open issues for it and I only caught it by accident while writing tests for other parts of that function.

@cjerdonek
Copy link
Member

Yes, I think so. The bugfix number can reference the PR directly.

@rouge8
Copy link
Contributor Author

rouge8 commented Apr 18, 2019

Yes, I think so. The bugfix number can reference the PR directly.

Done ✅

Copy link
Member

@cjerdonek cjerdonek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! A couple comments.

tests/unit/test_req_install.py Show resolved Hide resolved
news/6419.bugfix Outdated Show resolved Hide resolved
@rouge8 rouge8 force-pushed the fix-install-req-from-string-invalidrequirement branch from ceaafa5 to 5d14f3b Compare April 19, 2019 06:38
@cjerdonek cjerdonek force-pushed the fix-install-req-from-string-invalidrequirement branch from 5d14f3b to 3ec256d Compare April 19, 2019 08:33
@cjerdonek cjerdonek force-pushed the fix-install-req-from-string-invalidrequirement branch from 3ec256d to c6036b7 Compare April 19, 2019 08:50
@cjerdonek cjerdonek merged commit bb14ff4 into pypa:master Apr 19, 2019
@cjerdonek
Copy link
Member

Thanks again, @rouge8! 👍

(Note that I made a couple super tiny formatting-like tweaks before merging.)

@lock
Copy link

lock bot commented May 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label May 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators May 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants