[python/cpython] b35124: bpo-12383: Refactor subprocess test_empty_env (#18...
Branch: refs/heads/master Home: https://github.com/python/cpython Commit: b351248c1fa74277b886b0c9a2e1c2f65fabe9ef https://github.com/python/cpython/commit/b351248c1fa74277b886b0c9a2e1c2f65fa... Author: Gregory P. Smith <greg@krypto.org> Date: 2017-05-30 (Tue, 30 May 2017) Changed paths: M Lib/test/test_subprocess.py Log Message: ----------- bpo-12383: Refactor subprocess test_empty_env (#1874) 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.
participants (1)
-
GitHub