Skip to content

Conversation

hcientist
Copy link
Member

in testing output, as in test_kiosk I needed to read the program's output. I was doing that with capsys, but apparently prompts given to python's input() function won't be available in the stdout as captured in this way. We could instruct students to use print specifically to output their prompts, but that feels unnecessarily fragile.

@hcientist hcientist changed the title apparently the prompts given to input() go to stderr when python isn't running, maybe this fixture would be helpful generally apparently the prompts given to input() go to stderr when python isn't running in tty, maybe this fixture would be helpful generally Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant