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 <rep...@bugs.python.org> <http://bugs.python.org/issue29551> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com