mirror of https://github.com/python/cpython
Issue #26782: Add STARTUPINFO to subprocess.__all__ on Windows
This commit is contained in:
parent
9015eb4f74
commit
528619b6c3
|
@ -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`.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue