pytest-dev / pytest-dev/pytest-qt

QApplication.quit breaks following tests

Open
#323 6 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.