Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bpo-12383: Refactor subprocess test_empty_env#1874

Merged
gpshead merged 1 commit into
python:masterpython/cpython:masterfrom
gpshead:test_subprocess_empty_envgpshead/cpython:test_subprocess_empty_envCopy head branch name to clipboard
May 30, 2017
Merged

bpo-12383: Refactor subprocess test_empty_env#1874
gpshead merged 1 commit into
python:masterpython/cpython:masterfrom
gpshead:test_subprocess_empty_envgpshead/cpython:test_subprocess_empty_envCopy head branch name to clipboard

Conversation

@gpshead

@gpshead gpshead commented May 30, 2017

Copy link
Copy Markdown
Member

Bugfix: This test wasn't being run because it was skipping based on the
presence of Py_ENABLE_SHARED rather than its value. It is always present
on POSIX systems but defaults to 0.

Refactoring: Move the environment variables that can be ignored into a
function. Parse the list from the child process and filter out the ones
to exclude in the parent before checking that the rest is empty.

Feature: Adds always present environment variables to ignore when
running in a Gentoo sandbox so that the test can pass there.

Bugfix: This test wasn't being run because it was skipping based on the
presence of Py_ENABLE_SHARED rather than its value.  It is always present
on POSIX systems but defaults to 0.

Refactoring: Move the environment variables that can be ignored into a
function.  Parse the list from the child process and filter out the ones
to exclude in the parent before checking that the rest is empty.

Feature: Adds always present environment variables to ignore when
running in a Gentoo sandbox so that the test can pass there.
@mention-bot

Copy link
Copy Markdown

@gpshead, thanks for your PR! By analyzing the history of the files in this pull request, we identified @florentx, @tiran and @vadmium to be potential reviewers.

@gpshead gpshead merged commit b351248 into python:master May 30, 2017
@gpshead gpshead deleted the test_subprocess_empty_env branch May 30, 2017 21:40
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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.