]> granicus.if.org Git - python/commit
test_distutils: test_build_ext uses EnvironGuard (#1458)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 4 May 2017 16:10:09 +0000 (18:10 +0200)
committerGitHub <noreply@github.com>
Thu, 4 May 2017 16:10:09 +0000 (18:10 +0200)
commit0f7f67660653517a5b3ed93e4b658583ff4cd355
treed5fd7d2e4985bfef9a65522199c05818988bea03
parente1b02ff58883c68d3a5e549aa33c6dd94f915bd6
test_distutils: test_build_ext uses EnvironGuard (#1458)

Use EnvironGuard on BuildExtTestCase to save/restore os.environ, to fix the
following warning:

Warning -- os.environ was modified by test_distutils

MSVCCompiler.initialize() of distutils.msvc9compiler modifies
os.environ.
Lib/distutils/tests/test_build_ext.py