Commit 229db0f
committed
Supply status for missing exit codes
Following on from the work in "Handle -9 PyTest return code",
discussion with @Otto-AA and @boxed revealed it would be desirable
to handle missing return codes in full generality.
The simplest way I could think of to _do_ that, trying to eliminate
side effects, is to convert status_by_exit_code to a defaultdict,
with a default value of "suspicious" - one already defined, and
handled, elsewhere in the codebase.1 parent 1e46f1b commit 229db0f
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
0 commit comments