[New-bugs-announce] [issue22894] unittest.TestCase.subTest causes all subsequent tests to be skipped in failfast mode

Trey Cucco report at bugs.python.org
Mon Nov 17 23:18:09 CET 2014


New submission from Trey Cucco:

When running a test suite with the -f flag (--failfast), unittest seems to stop running tests once it exits a with self.subTest block.

In the attached script, run it without -f and test_b will run and fail. Run it with the -f flag and only the test_a test will run. test_b will not run and no errors will be reported.

I noticed this bug in 3.4.1 on OS X

----------
components: Macintosh, Tests
files: utbug.py
messages: 231305
nosy: Trey.Cucco, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: unittest.TestCase.subTest causes all subsequent tests to be skipped in failfast mode
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file37218/utbug.py

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


More information about the New-bugs-announce mailing list