Skip to content

Replace pytest-sugar with pytest-modern for pytest 9.2 compatibility - #495

Open
harryswift01 wants to merge 2 commits into
mainfrom
494-bug-pytest-sugar-incompatible-with-pytest-920
Open

harryswift01 wants to merge 2 commits into
mainfrom
494-bug-pytest-sugar-incompatible-with-pytest-920

Conversation

@harryswift01

Copy link
Copy Markdown
Member

Summary

This PR replaces pytest-sugar with pytest-modern to restore compatibility with pytest 9.2.0 and improve terminal test reporting.

Changes

  • Replace pytest-sugar, which is incompatible with pytest 9.2.0.
  • Initially considered pytest-rich to align with CodeEntropy's Rich-based terminal output.
  • Opted for pytest-modern instead, as it better accommodates terminal coverage reporting with pytest-cov.
  • Configure coverage output to display uncovered lines directly in the terminal.

Testing

  • Verify tests run successfully with pytest 9.2.0.
  • Verify terminal coverage reporting.

Impact

  • Restores compatibility with pytest 9.2.0.
  • Improves terminal test output and provides coverage visibility.

Checklist

  • Tests added or updated
  • Documentation updated
  • If dependencies in pyproject.toml changed, the lower bounds were reviewed deliberately

@harryswift01 harryswift01 self-assigned this Nov 17, 2026
@harryswift01 harryswift01 added bug Something isn't working dependencies Pull requests that update a dependency file labels Nov 17, 2026
@harryswift01 harryswift01 linked an issue Nov 17, 2026 that may be closed by this pull request
@harryswift01
harryswift01 requested a review from jimboid November 17, 2026 15:22

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: pytest-sugar incompatible with pytest 9.2.0

1 participant