pytest-dev / pytest-dev/pytest-qt
QApplication.quit breaks following tests
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 455
- Forks
- 72
- Avg merge
- 12h 26m
- Merged PRs (30d)
- 1
Description
I have a test that uses waitCallback, which succeeds when run in isolation, but fails if a QApplication.quit is run from my code somewhere before. In that case, it fails immediately (not after the timeout), with a TimeoutError.
(Sorry I don't have time (now) to give more details, might that be necessary)
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 by reproducing the failure with a test using waitCallback after QApplication.quit has been run, comparing it with the isolated case. Trace why the callback raises TimeoutError immediately rather than after the timeout. Done means the test no longer fails solely because an earlier QApplication.quit was called.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100