changeset: 70930:93cd98782f47 parent: 70928:aff0a7b0cb12 parent: 70929:52c5f80122dd user: Victor Stinner date: Thu Jun 23 01:02:50 2011 +0200 files: Lib/test/test_subprocess.py description: (merge 3.2) 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. diff -r aff0a7b0cb12 -r 93cd98782f47 Lib/test/test_subprocess.py --- a/Lib/test/test_subprocess.py Wed Jun 22 22:15:51 2011 +0200 +++ b/Lib/test/test_subprocess.py Thu Jun 23 01:02:50 2011 +0200 @@ -390,6 +390,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')