[Python-checkins] cpython (3.2): Issue #12383: skip test_empty_env() of subprocess on Windows

victor.stinner python-checkins at python.org
Thu Jun 23 01:04:37 CEST 2011


http://hg.python.org/cpython/rev/52c5f80122dd
changeset: 70929:52c5f80122dd
branch: 3.2
parent: 70926:da3af4b131d7
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Thu Jun 23 01:02:25 2011 +0200
summary:
 Issue #12383: skip test_empty_env() of subprocess on Windows
Cannot test an empty environment on Windows: Windows requires at least the
SYSTEMROOT environment variable to start Python.
files:
 Lib/test/test_subprocess.py | 4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -339,6 +339,10 @@
 stdout, stderr = p.communicate()
 self.assertEqual(stdout, b"orange")
 
+ # Windows requires at least the SYSTEMROOT environment variable to start
+ # Python
+ @unittest.skipIf(sys.platform == 'win32',
+ 'cannot test an empty env on Windows')
 @unittest.skipIf(sysconfig.get_config_var('Py_ENABLE_SHARED') is not None,
 'the python library cannot be loaded '
 'with an empty environment')
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /