Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnixConsole: raise EOFError in case input_fd is not a TTY #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Apr 11, 2021

  1. 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".
    blueyed committed Apr 11, 2021
    Configuration menu
    Copy the full SHA
    66ff703 View commit details
    Browse the repository at this point in the history
  2. more defensive

    blueyed committed Apr 11, 2021
    Configuration menu
    Copy the full SHA
    d5e126d View commit details
    Browse the repository at this point in the history
  3. improve, add test

    blueyed committed Apr 11, 2021
    Configuration menu
    Copy the full SHA
    7349f1a View commit details
    Browse the repository at this point in the history