Berker Peksag added the comment:
I agree with Martin. Plus, this method already used by other tests (see
Lib/test/test_nntplib.py and Lib/test/test_warnings.py for example).
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 232520144c6c by Berker Peksag in branch '3.4':
Issue #22665: Add missing get_terminal_size and SameFileError to shutil.__all__.
https://hg.python.org/cpython/rev/232520144c6c
New changeset 193ac288bc7f by Berker Peksag in branch 'default':
Issue
Berker Peksag added the comment:
Thanks for the report, Martin.
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22665
Éric Araujo added the comment:
IIRC test___all__ can be used for this.
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22665
___
Martin Panter added the comment:
Looking at Lib/test/test___all__.py, that module just makes sure that the names
imported with “from ... import *” are the same as listed in the __all__
attribute. It does no know what the __all__ attribute is meant to contain.
--
Berker Peksag added the comment:
Here is a patch. I also added SameFileError.
--
assignee: - berker.peksag
keywords: +patch
nosy: +berker.peksag
stage: - patch review
versions: +Python 3.5
Added file: http://bugs.python.org/file36969/issue22665.diff
New submission from Martin Panter:
Continuing on from Issue 22247 (other out-of-date __all__ attributes),
shutil.__all__ is missing (at least) get_terminal_size(), which was implemented
for Issue 13609.
--
components: Library (Lib)
messages: 229630
nosy: vadmium
priority: normal