Commit 41ed69fb authored by Martin Panter's avatar Martin Panter

Issue #26782: Add STARTUPINFO to subprocess.__all__ on Windows

parent f0d1717b
...@@ -500,7 +500,7 @@ Changes in the Python API ...@@ -500,7 +500,7 @@ Changes in the Python API
attributes to match the documented APIs: :mod:`calendar`, :mod:`csv`, attributes to match the documented APIs: :mod:`calendar`, :mod:`csv`,
:mod:`~xml.etree.ElementTree`, :mod:`enum`, :mod:`~xml.etree.ElementTree`, :mod:`enum`,
:mod:`fileinput`, :mod:`ftplib`, :mod:`logging`, :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 *`` :mod:`wave`. This means they will export new symbols when ``import *``
is used. See :issue:`23883`. is used. See :issue:`23883`.
......
...@@ -471,7 +471,8 @@ if _mswindows: ...@@ -471,7 +471,8 @@ if _mswindows:
__all__.extend(["CREATE_NEW_CONSOLE", "CREATE_NEW_PROCESS_GROUP", __all__.extend(["CREATE_NEW_CONSOLE", "CREATE_NEW_PROCESS_GROUP",
"STD_INPUT_HANDLE", "STD_OUTPUT_HANDLE", "STD_INPUT_HANDLE", "STD_OUTPUT_HANDLE",
"STD_ERROR_HANDLE", "SW_HIDE", "STD_ERROR_HANDLE", "SW_HIDE",
"STARTF_USESTDHANDLES", "STARTF_USESHOWWINDOW"]) "STARTF_USESTDHANDLES", "STARTF_USESHOWWINDOW",
"STARTUPINFO"])
class Handle(int): class Handle(int):
closed = False closed = False
......
...@@ -2540,8 +2540,7 @@ class MiscTests(unittest.TestCase): ...@@ -2540,8 +2540,7 @@ class MiscTests(unittest.TestCase):
def test__all__(self): def test__all__(self):
"""Ensure that __all__ is populated properly.""" """Ensure that __all__ is populated properly."""
# STARTUPINFO added to __all__ in 3.6 intentionally_excluded = {"list2cmdline", "Handle"}
intentionally_excluded = {"list2cmdline", "STARTUPINFO", "Handle"}
exported = set(subprocess.__all__) exported = set(subprocess.__all__)
possible_exports = set() possible_exports = set()
import types import types
......
...@@ -245,6 +245,8 @@ Core and Builtins ...@@ -245,6 +245,8 @@ Core and Builtins
Library Library
------- -------
- Issue #26782: Add STARTUPINFO to subprocess.__all__ on Windows.
- Issue #26404: Add context manager to socketserver. Patch by Aviv Palivoda. - 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 - Issue #26735: Fix :func:`os.urandom` on Solaris 11.3 and newer when reading
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment