Skip to content

test: dispose Qt test objects before shutdown - #10

Merged
lukisch merged 1 commit into
mainfrom
codex/qt-test-lifecycle-20261012
Oct 12, 2026
Merged

lukisch merged 1 commit into
mainfrom
codex/qt-test-lifecycle-20261012

Conversation

@lukisch

@lukisch lukisch commented Oct 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Use one session-scoped QApplication for GUI tests and dispose test-owned widgets and tray icons before interpreter shutdown.
  • Parent only test-owned tray objects to the shared application; preserve functional assertions and the standalone asset-test entry point.
  • This is a controlled test-lifecycle candidate for the intermittent Windows native exits tracked in Intermittent Windows pytest process abort after passing suite #9. It does not establish or claim to fix their native cause.

Validation

  • Python 3.12.10, pytest 9.1.1, PySide6/shiboken6 6.12.0: 104 passed and 6 subtests passed; real process exit 0 in an isolated profile.
  • Python 3.13.15 without PySide6: source-platform smoke contract, 1 passed; real process exit 0.
  • Standalone asset test: 6 tests passed; real process exit 0.
  • Ruff and git diff --check passed.

Refs #9

@lukisch
lukisch merged commit ef14bc8 into main Oct 12, 2026
12 checks passed
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

Successfully merging this pull request may close these issues.

1 participant