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

bpo-33455: Pass os.environ in test_posix::test_specify_environment #6753

Merged
merged 1 commit into from
May 11, 2018

Conversation

hroncok
Copy link
Contributor

@hroncok hroncok commented May 10, 2018

Pass os.environ's copy to new process created at test_posix::test_specify_environment. Otherwise important variables such as LD_LIBRARY_PATH are not set and the child process might not work at all
in an environment where such variables are required for Python to function.

https://bugs.python.org/issue33455

@serhiy-storchaka
Copy link
Member

The fix LGTM, but I don't think it is worth a news entry. News entries usually are added only for changes that affect many tests like adding new CLI option or new helper in test.support.

@serhiy-storchaka serhiy-storchaka added tests Tests in the Lib/test dir needs backport to 3.7 labels May 10, 2018
@hroncok
Copy link
Contributor Author

hroncok commented May 10, 2018

Oh, I tough the news entry is mandatory.

@serhiy-storchaka
Copy link
Member

Usually yes, but we have a special label for the case when it is not required.

Pass os.environ's copy to new process created at test_posix:
test_specify_environment. Otherwise important variables such as
LD_LIBRARY_PATH are not set and the child process might not work at all
in an environment where such variables are required for Python to function.
@hroncok
Copy link
Contributor Author

hroncok commented May 10, 2018

Amended.

@hroncok
Copy link
Contributor Author

hroncok commented May 10, 2018

Thanks for the swift review.

@serhiy-storchaka
Copy link
Member

Thank you for your report and fix!

@serhiy-storchaka serhiy-storchaka merged commit 7ec8f28 into python:master May 11, 2018
@miss-islington
Copy link
Contributor

Thanks @hroncok for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 11, 2018
…ythonGH-6753)

Pass os.environ's copy to new process created at test_posix:
test_specify_environment. Otherwise important variables such as
LD_LIBRARY_PATH are not set and the child process might not work at all
in an environment where such variables are required for Python to function.
(cherry picked from commit 7ec8f28)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
@bedevere-bot
Copy link

GH-6765 is a backport of this pull request to the 3.7 branch.

miss-islington added a commit that referenced this pull request May 11, 2018
…H-6753)

Pass os.environ's copy to new process created at test_posix:
test_specify_environment. Otherwise important variables such as
LD_LIBRARY_PATH are not set and the child process might not work at all
in an environment where such variables are required for Python to function.
(cherry picked from commit 7ec8f28)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
@hroncok hroncok deleted the issue33455 branch May 11, 2018 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants