This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_contextlib fails with -S
Type: Stage: resolved
Components: Tests Versions: Python 3.4
process
Status: closed Resolution: fixed
Dependencies: Superseder: Use public classes for contextlib.suppress and redirect_stdout
View: 19330
Assigned To: ncoghlan Nosy List: ncoghlan, pitrou, python-dev
Priority: low Keywords:

Created on 2013-10-25 19:42 by pitrou, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (4)
msg201284 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2013-10-25 19:42
$ ./python -S -m test test_contextlib
[1/1] test_contextlib
test test_contextlib failed -- Traceback (most recent call last):
  File "/home/antoine/cpython/default/Lib/test/test_contextlib.py", line 640, in test_redirect_to_string_io
    help(pow)
NameError: name 'help' is not defined
msg201315 - (view) Author: Nick Coghlan (ncoghlan) * (Python committer) Date: 2013-10-26 06:32
It's not strictly a duplicate, but I'll be refactoring the relevant tests a bit in order to resolve issue 19330 anyway (I'm working on that now), so I can remove the dependency on help() in the process.
msg201316 - (view) Author: Nick Coghlan (ncoghlan) * (Python committer) Date: 2013-10-26 06:36
On second thoughts, since I haven't started on the refactoring yet...
msg201317 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-10-26 06:37
New changeset 2b904290b3b9 by Nick Coghlan in branch 'default':
Close #19396: make test_contextlib tolerate -S
http://hg.python.org/cpython/rev/2b904290b3b9
History
Date User Action Args
2022-04-11 14:57:52adminsetgithub: 63595
2013-10-26 06:37:59python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg201317

resolution: fixed
stage: resolved
2013-10-26 06:36:49ncoghlansetstatus: closed -> open
resolution: duplicate -> (no value)
messages: + msg201316
2013-10-26 06:32:43ncoghlansetstatus: open -> closed
superseder: Use public classes for contextlib.suppress and redirect_stdout
resolution: duplicate
messages: + msg201315
2013-10-25 19:42:28pitroucreate