diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-04-16 23:42:37 +0000 |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-04-16 23:42:37 +0000 |
commit | ea98cef77dfdfdc050d8033bd1b2fb865327f70a (patch) | |
tree | abb7bf8f4e3600ecee1ce91676ac467064b62be8 /Lib | |
parent | 3ea8ac2c5a160e7370c7764a8453699ea180f511 (diff) | |
download | cpython-ea98cef77dfdfdc050d8033bd1b2fb865327f70a.tar.gz |
Issue #26782: Add STARTUPINFO to subprocess.__all__ on Windows
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/subprocess.py | 3 | ||||
-rw-r--r-- | Lib/test/test_subprocess.py | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 640519d8db..e9803497d5 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -471,7 +471,8 @@ if _mswindows: __all__.extend(["CREATE_NEW_CONSOLE", "CREATE_NEW_PROCESS_GROUP", "STD_INPUT_HANDLE", "STD_OUTPUT_HANDLE", "STD_ERROR_HANDLE", "SW_HIDE", - "STARTF_USESTDHANDLES", "STARTF_USESHOWWINDOW"]) + "STARTF_USESTDHANDLES", "STARTF_USESHOWWINDOW", + "STARTUPINFO"]) class Handle(int): closed = False diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index b5c86f2953..7f70fd0001 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -2540,8 +2540,7 @@ class MiscTests(unittest.TestCase): def test__all__(self): """Ensure that __all__ is populated properly.""" - # STARTUPINFO added to __all__ in 3.6 - intentionally_excluded = {"list2cmdline", "STARTUPINFO", "Handle"} + intentionally_excluded = {"list2cmdline", "Handle"} exported = set(subprocess.__all__) possible_exports = set() import types |