Unit testing prompt-toolkit timeouts on Windows
Opened this issue · 0 comments
ancalita commented
- 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.linesepbut 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.