This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2014年11月17日 22:18 by Trey.Cucco, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| utbug.py | Trey.Cucco, 2014年11月17日 22:18 | A python script demonstrating the bug | ||
| subtests_failfast.patch | pitrou, 2014年11月21日 00:14 | review | ||
| Messages (4) | |||
|---|---|---|---|
| msg231305 - (view) | Author: Trey Cucco (Trey.Cucco) | Date: 2014年11月17日 22:18 | |
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 |
|||
| msg231449 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2014年11月21日 00:14 | |
Here is a patch. |
|||
| msg231468 - (view) | Author: Michael Foord (michael.foord) * (Python committer) | Date: 2014年11月21日 09:20 | |
Looks good, thanks for the quick response. |
|||
| msg231562 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2014年11月23日 15:01 | |
New changeset 993e8f795194 by Antoine Pitrou in branch '3.4': Issue #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 #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 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:10 | admin | set | github: 67083 |
| 2014年11月23日 15:06:40 | pitrou | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2014年11月23日 15:01:31 | python-dev | set | nosy:
+ python-dev messages: + msg231562 |
| 2014年11月21日 09:20:40 | michael.foord | set | messages: + msg231468 |
| 2014年11月21日 00:14:11 | pitrou | set | files:
+ subtests_failfast.patch versions: + Python 3.5 messages: + msg231449 keywords: + patch stage: patch review |
| 2014年11月20日 11:37:51 | michael.foord | set | nosy:
+ pitrou |
| 2014年11月18日 22:18:44 | ethan.furman | set | nosy:
+ ethan.furman |
| 2014年11月17日 22:35:48 | ned.deily | set | nosy:
+ rbcollins, ezio.melotti, michael.foord, - ronaldoussoren, ned.deily components: - macOS |
| 2014年11月17日 22:18:09 | Trey.Cucco | create | |