[New-bugs-announce] [issue29551] unittest: TestSuite.debug() does not like subTest()

Wolfgang Rohdewald report at bugs.python.org
Tue Feb 14 02:10:49 EST 2017


New submission from Wolfgang Rohdewald:

the main code is appended in main.py

if a test uses with self.subTest(), subTest() fails right in its first statement "if not self._outcome ..." because _outcome is None.

In main.py, the commented runner.run(suite) would work correctly.

If this is not meant to work, please mention it in the documentation and  improve unittest's reaction.

what I would find more logical from the users's point of view is something like

runner.debug(suite)

----------
components: Library (Lib)
files: main.py
messages: 287738
nosy: wrohdewald
priority: normal
severity: normal
status: open
title: unittest: TestSuite.debug() does not like subTest()
type: crash
versions: Python 3.5
Added file: http://bugs.python.org/file46637/main.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29551>
_______________________________________


More information about the New-bugs-announce mailing list