]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #26782: Add STARTUPINFO to subprocess.__all__ on Windows
authorMartin Panter <vadmium+py@gmail.com>
Sat, 16 Apr 2016 23:42:37 +0000 (23:42 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Sat, 16 Apr 2016 23:42:37 +0000 (23:42 +0000)
Doc/whatsnew/3.6.rst
Lib/subprocess.py
Lib/test/test_subprocess.py
Misc/NEWS

index ef10ef24d696f3a1a45fe600c2573ffff2f05005..adb8b73f94b709e62919a6c34349567ae501c7fa 100644 (file)
@@ -500,7 +500,7 @@ Changes in the Python API
   attributes to match the documented APIs: :mod:`calendar`, :mod:`csv`,
   :mod:`~xml.etree.ElementTree`, :mod:`enum`,
   :mod:`fileinput`, :mod:`ftplib`, :mod:`logging`,
-  :mod:`optparse`, :mod:`tarfile`, :mod:`threading` and
+  :mod:`optparse`, :mod:`subprocess`, :mod:`tarfile`, :mod:`threading` and
   :mod:`wave`.  This means they will export new symbols when ``import *``
   is used.  See :issue:`23883`.
 
index 640519d8dbb29c8debdef08d762e5de6438113be..e9803497d58169fa94d51334a8e3dfe347d0e06a 100644 (file)
@@ -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
index b5c86f2953457abb9f19f872c2fb2f6dd3240b19..7f70fd0001378eac752ee5357fd7028daaaf5d7a 100644 (file)
@@ -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
index af2d65413a3a36acae2f13328829998c7b19c2bc..c02cd3a234dacde899b26910df2d233a78a09c7f 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -245,6 +245,8 @@ Core and Builtins
 Library
 -------
 
+- Issue #26782: Add STARTUPINFO to subprocess.__all__ on Windows.
+
 - Issue #26404: Add context manager to socketserver.  Patch by Aviv Palivoda.
 
 - Issue #26735: Fix :func:`os.urandom` on Solaris 11.3 and newer when reading