Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 (`pdb.set_trace()`), and then continuing (`c`). pytest is capturing output by now then, but the debugging plugin (which suspends capturing) might not be active yet (pytest_load_initial_conftests). This patch makes it raise `BdbQuit` then "correctly".
- Loading branch information