[issue12309] os.environ was modified by test_packaging
STINNER Victor
report at bugs.python.org
Fri Jun 17 14:17:51 CEST 2011
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
A patch fixing os.environ warning for test_command_build_ext.py:
diff --git a/Lib/packaging/tests/test_command_build_ext.py b/Lib/packaging/tests/test_command_build_ext.py
--- a/Lib/packaging/tests/test_command_build_ext.py
+++ b/Lib/packaging/tests/test_command_build_ext.py
@@ -20,7 +20,10 @@ def _get_source_filename():
class BuildExtTestCase(support.TempdirManager,
support.LoggingCatcher,
+ support.EnvironRestorer,
unittest.TestCase):
+ restore_environ = ['LIB', 'INCLUDE', 'PATH']
+
def setUp(self):
# Create a simple test environment
# Note that we're making changes to sys.path
It is not enough.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12309>
_______________________________________
More information about the Python-bugs-list
mailing list