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

Reply via email to