From 62d511809d3ccde1b8555cf27f12f31f74c10da6 Mon Sep 17 00:00:00 2001 From: Victor Stinner <victor.stinner@haypocalc.com> Date: Thu, 23 Jun 2011 01:02:25 +0200 Subject: [PATCH] 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. --- Lib/test/test_subprocess.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 23325f49ee..4a563b9866 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') -- 2.40.0