Skip to content

Fix headless system-test matplotlib backend#3166

Open
ashleymeigh2 wants to merge 1 commit into
mainfrom
2926_headless_system_test
Open

Fix headless system-test matplotlib backend#3166
ashleymeigh2 wants to merge 1 commit into
mainfrom
2926_headless_system_test

Conversation

@ashleymeigh2

Copy link
Copy Markdown
Collaborator

Issue Closes #2926

Description

Fixes headless system-test crashes by setting matplotlib backend during pytest collection (after test flags are applied), not at geometry view import time.

Developer Testing

Agg for QT_QPA_PLATFORM = offscreen or minimal
Qt5Agg otherwise

Acceptance Criteria and Reviewer Testing

  • Unit tests pass locally: python -m pytest -vs
  • With DISPLAY unset + --run-system-tests, tests do not fail at import with Qt5Agg headless error
  • offscreen/minimal selects Agg backend
    s baselines](https://eyes.applitools.com/app/baselines) for more info) -->

@coveralls

coveralls commented Jun 8, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 67.946% (-0.001%) from 67.947% — 2926_headless_system_test into main

@ashleymeigh2 ashleymeigh2 force-pushed the 2926_headless_system_test branch from 888a778 to d47e492 Compare June 9, 2026 09:27
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.

System tests: Problems with offscreen qt when running headlessly

2 participants