Skip to content

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

Merged
harryswift01 merged 2 commits into
mainfrom
494-bug-pytest-sugar-incompatible-with-pytest-920
Nov 20, 2026
Merged

harryswift01 merged 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

@jimboid jimboid left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a decent fix. Happy to see it merge.

@harryswift01
harryswift01 merged commit 972bea9 into main Nov 20, 2026
22 of 23 checks passed
@harryswift01
harryswift01 deleted the 494-bug-pytest-sugar-incompatible-with-pytest-920 branch November 20, 2026 08:49
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

2 participants