Commit 76705d9
committed
Fix
tests/test_child_procs.py::_run_subproc()
- If any of the output streams is captured, we call
`subprocess.run(..., check=False)` to get the chance to intercept
and print the output, and only call `.check_returncode()` on the
`CompletedProcess` afterwards
- Fixed bug where if `text=False` we attempt to format the captured
stream-content bytes as stringssubprocess.run() wrapper in tests1 parent fa9f0f3 commit 76705d9
1 file changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
| 489 | + | |
489 | 490 | | |
490 | 491 | | |
491 | 492 | | |
| |||
497 | 498 | | |
498 | 499 | | |
499 | 500 | | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
500 | 511 | | |
501 | 512 | | |
502 | 513 | | |
| |||
522 | 533 | | |
523 | 534 | | |
524 | 535 | | |
525 | | - | |
| 536 | + | |
526 | 537 | | |
527 | 538 | | |
528 | 539 | | |
529 | 540 | | |
530 | 541 | | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
531 | 545 | | |
532 | 546 | | |
533 | 547 | | |
534 | 548 | | |
535 | 549 | | |
| 550 | + | |
536 | 551 | | |
537 | 552 | | |
538 | 553 | | |
539 | 554 | | |
540 | 555 | | |
541 | 556 | | |
| 557 | + | |
| 558 | + | |
542 | 559 | | |
543 | 560 | | |
544 | 561 | | |
| |||
0 commit comments