prompt-toolkit / prompt-toolkit/python-prompt-toolkit
Unit testing prompt-toolkit timeouts on Windows
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 815
- PR merge metrics
- No merged PRs in 30d
Description
- 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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the prompt_toolkit unit-testing documentation linked in the issue and reproduce the timeout on Windows, comparing it with the passing Linux and macOS tests. Inspect the affected tests and input separator or key-binding behavior; done means the tests complete reliably on Windows as well as the other supported systems.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, operating-systems, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100