[Python-checkins] cpython (3.5): Issue #26782: Acknowledge the incomplete status of __all__ in 3.5

martin.panter python-checkins at python.org
Sat Apr 16 19:51:51 EDT 2016


https://hg.python.org/cpython/rev/386712b16c74
changeset:   101027:386712b16c74
branch:      3.5
parent:      101025:8ae1b986766d
user:        Martin Panter <vadmium+py at gmail.com>
date:        Sat Apr 16 23:38:25 2016 +0000
summary:
  Issue #26782: Acknowledge the incomplete status of __all__ in 3.5

Handle is probably meant to be excluded, and STARTUPINFO will be added to
__all__ in 3.6.

files:
  Lib/test/test_subprocess.py |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -2540,7 +2540,8 @@
 
     def test__all__(self):
         """Ensure that __all__ is populated properly."""
-        intentionally_excluded = set(("list2cmdline",))
+        # STARTUPINFO added to __all__ in 3.6
+        intentionally_excluded = {"list2cmdline", "STARTUPINFO", "Handle"}
         exported = set(subprocess.__all__)
         possible_exports = set()
         import types

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list