[issue29551] unittest: TestSuite.debug() does not like subTest()

2018-10-05 Thread Berker Peksag


Berker Peksag  added the comment:

Thanks for the report, Wolfgang. The main cause of the issue will be resolved 
when we merge PR 9707. I'm closing this as a duplicate of issue 34900 since the 
latter has already an open PR.

--
nosy: +berker.peksag
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> unittest subTests() fails when called from debug()

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29551] unittest: TestSuite.debug() does not like subTest()

2017-02-13 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +ezio.melotti, michael.foord, pitrou, rbcollins
type: crash -> behavior
versions: +Python 3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29551] unittest: TestSuite.debug() does not like subTest()

2017-02-13 Thread Wolfgang Rohdewald

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com