Skip to content

Comments

Fix issue when PATH is missing in os.environ#3146

Merged
abn merged 1 commit intopython-poetry:masterfrom
exhuma:fix/3144-keyerror
Oct 8, 2020
Merged

Fix issue when PATH is missing in os.environ#3146
abn merged 1 commit intopython-poetry:masterfrom
exhuma:fix/3144-keyerror

Conversation

@exhuma
Copy link

@exhuma exhuma commented Oct 8, 2020

Pull Request Check List

Resolves: #3144

I'm not really sure any of the two check-boxes apply for this change. Is the effort of preparing os.environ for the unit-test really worth the effort? Considering that this might interfere with other tests, so it needs to be mocked or patched. I feel that all this effort for this small change is a bit over-the-top. The call itself (and thus a runtime syntax-error) is already covered by existing tests.

If you disagree, let me know and I will add the required test.

As for documentation, as this is an internal change not externally visible I don't think it warrants docs. Again, let me know if you disagree.

And finally, I decided to target master instead of develop for this PR because it is a bugfix on the current released version. But that's anyway something you can modify yourself 😉

  • Added tests for changed code.
  • Updated documentation for changed code.

@exhuma
Copy link
Author

exhuma commented Oct 8, 2020

Not sure why the checks fail. I ran the pre-commit hooks and they all passed.

@abn
Copy link
Member

abn commented Oct 8, 2020

@exhuma jfyi develop is defunct at the moment. If you want this in a bug fix release, please also create PR against 1.1 once this is merged.

@abn abn merged commit 6a96dd2 into python-poetry:master Oct 8, 2020
@exhuma
Copy link
Author

exhuma commented Oct 9, 2020

Done in #3159

@github-actions
Copy link

github-actions bot commented Mar 1, 2024

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

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Poetry fails with KeyError if the PATH environment variable is not present

2 participants