changeset: 70929:52c5f80122dd branch: 3.2 parent: 70926:da3af4b131d7 user: Victor Stinner date: Thu Jun 23 01:02:25 2011 +0200 files: Lib/test/test_subprocess.py description: 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 da3af4b131d7 -r 52c5f80122dd Lib/test/test_subprocess.py --- a/Lib/test/test_subprocess.py Wed Jun 22 21:28:43 2011 +0200 +++ b/Lib/test/test_subprocess.py Thu Jun 23 01:02:25 2011 +0200 @@ -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')