You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2014-11-23.15:06:40.650>created_at=<Date2014-11-17.22:18:09.098>labels= ['type-bug', 'tests']
title='unittest.TestCase.subTest causes all subsequent tests to be skipped in failfast mode'updated_at=<Date2014-11-23.15:06:40.649>user='https://bugs.python.org/TreyCucco'
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.
New changeset 993e8f795194 by Antoine Pitrou in branch '3.4':
Issue bpo-22894: TestCase.subTest() would cause the test suite to be stopped when in failfast mode, even in the absence of failures. https://hg.python.org/cpython/rev/993e8f795194
New changeset 04103cece49d by Antoine Pitrou in branch 'default':
Issue bpo-22894: TestCase.subTest() would cause the test suite to be stopped when in failfast mode, even in the absence of failures. https://hg.python.org/cpython/rev/04103cece49d
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: