[issue42492] [unittest] Missing docs for context manager attributes

Jason Yundt report at bugs.python.org
Sat Nov 28 12:49:04 EST 2020


New submission from Jason Yundt <swagfortress at gmail.com>:

The documentation talks about how assertRaises, assertRaisesRegex, assertWarns, and assertWarnsRegex can be used as context managers. It also talks about the attributes of those context managers. Some attributes aren't documented. For example, the warning attribute of the assertRaises or assertRaisesRegex context manager isn't documented.

----------
assignee: docs at python
components: Documentation, Tests
messages: 382012
nosy: docs at python, jayman
priority: normal
severity: normal
status: open
title: [unittest] Missing docs for context manager attributes
type: enhancement
versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42492>
_______________________________________


More information about the Python-bugs-list mailing list