Commit ac16da4
committed
UnixConsole: raise EOFError in case input_fd is not a TTY
This is required for when the UnixConsole instance was created with
stdin being a terminal, but then later not so anymore.
E.g. having used pdbpp before pytest captures output, and then having a
set_trace where pytest is capturing output, but the debugging plugin
(which suspends capturing) is not active yet (pytest_load_initial_conftests).
This will result in pdb raising `BdbQuit` then "correctly".1 parent d1e0fd2 commit ac16da4
2 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
| 481 | + | |
481 | 482 | | |
482 | | - | |
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
358 | 362 | | |
359 | 363 | | |
360 | 364 | | |
| |||
0 commit comments