Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork944
Commita0e08fe
committed
Show more information when
Previously, it attempted to show stderr unless empty, first fallingback to stdout unless empty, then falling back to the prewrittensummary identifying the specific assertion.This now has the `test_installation` assertions capture stderr aswell as stdout, handle standard streams as text rather than binary,and show more information when failing, always distinguishing wherethe information came from: the summary, then labeled capturedstdout (empty or not), then labeled captured stderr (empty or not).That applies to all but the last assertion, which does not try toshow information differently when it fails, but is simplified to dothe right thing now that `subprocess.run` is using text streams.(This subtly changes its semantics, but overall it should be aseffective as before at finding the `sys.path` woe it anticipates.)test_installation
fails1 parenta2ba480 commita0e08fe
1 file changed
+13
-16
lines changedLines changed: 13 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
| 18 | + | |
23 | 19 |
| |
24 | 20 |
| |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
| 21 | + | |
30 | 22 |
| |
31 | 23 |
| |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
| 24 | + | |
37 | 25 |
| |
38 | 26 |
| |
39 | 27 |
| |
40 | 28 |
| |
41 | 29 |
| |
42 |
| - | |
| 30 | + | |
43 | 31 |
| |
44 | 32 |
| |
45 | 33 |
| |
| |||
63 | 51 |
| |
64 | 52 |
| |
65 | 53 |
| |
| 54 | + | |
| 55 | + | |
66 | 56 |
| |
67 | 57 |
| |
68 | 58 |
| |
69 | 59 |
| |
70 | 60 |
| |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + |
0 commit comments
Comments
(0)