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

Unit testing prompt-toolkit timeouts on Windows #1923

Open
ancalita opened this issue Sep 30, 2024 · 0 comments
Open

Unit testing prompt-toolkit timeouts on Windows #1923

ancalita opened this issue Sep 30, 2024 · 0 comments

Comments

@ancalita
Copy link

  • The issue is that the separator "\n" that the prompt_toolkit docs recommends for Unix-based OS does not work on Windows - the test timeouts waiting for input.
  • I originally replaced the "\n" with os.linesep but that didn't help, the tests were still timing out.
  • I also tried implementing custom key bindings using prompt_toolkit that would work in both Linux and Windows systems: this didn't work either, tests still time out on Windows.

Note that the tests pass without issues on Linux and Mac OS.

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

No branches or pull requests

1 participant