diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-06-22 23:02:25 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-06-22 23:02:25 (GMT) |
commit | 62d511809d3ccde1b8555cf27f12f31f74c10da6 (patch) | |
tree | 6f1246192959662f23513c3fa87c62ecba07db01 | |
parent | 237e5cb3767aece25e616fb41172836bb4f31760 (diff) | |
download | cpython-62d511809d3ccde1b8555cf27f12f31f74c10da6.zip cpython-62d511809d3ccde1b8555cf27f12f31f74c10da6.tar.gz cpython-62d511809d3ccde1b8555cf27f12f31f74c10da6.tar.bz2 |
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.
-rw-r--r-- | 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 index 23325f4..4a563b9 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -339,6 +339,10 @@ class ProcessTestCase(BaseTestCase): 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') |