Commit 3896096
committed
unittest: Exit with non-zero code on failures.
`unittest.main()` will now cause the process to exit with a non-zero
status code on test failure. This behaviour is assumed by the test
framework used in this repo (in `tools/ci.sh`), is what happens when
using the unittest-discover module, and is what CPython does.
Removing `unittest/tests/exception.py` as this test always fails (by
design). This functionality (a bare function being used as a test raises
an error that is not a subclass of `AssertionError`) had a test added in
the previous commit (`test_basics.Basics.test_bare_function__error`).
Signed-off-by: Greg Darke <micropython@me.tsukasa.au>1 parent 0120d94 commit 3896096
3 files changed
Lines changed: 4 additions & 17 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
596 | | - | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | 66 | | |
68 | 67 | | |
69 | 68 | | |
| |||
0 commit comments