Skip to content

Make range suppression test snapshot actually useful#23251

Merged
amyreese merged 1 commit intomainfrom
amy/suppression-test-snapshot
Feb 12, 2026
Merged

Make range suppression test snapshot actually useful#23251
amyreese merged 1 commit intomainfrom
amy/suppression-test-snapshot

Conversation

@amyreese
Copy link
Member

When range suppressions were stabilized in 0.15.0, this snapshot became
empty/useless because there was no longer a difference between the
normal and preview behaviors on the fixture file.

When range suppressions were stabilized in 0.15.0, this snapshot became
empty/useless because there was no longer a difference between the
normal and preview behaviors on the fixture file.
@amyreese amyreese added the internal An internal refactor or improvement label Feb 12, 2026
@amyreese amyreese requested a review from ntBre February 12, 2026 17:41
Copy link
Contributor

@ntBre ntBre left a comment

Choose a reason for hiding this comment

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

Thanks! I think when we use assert_diagnostics_diff! we should basically always include the baseline case as a separate test.

@astral-sh-bot
Copy link

astral-sh-bot bot commented Feb 12, 2026

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@amyreese amyreese merged commit 4fd07d0 into main Feb 12, 2026
43 checks passed
@amyreese amyreese deleted the amy/suppression-test-snapshot branch February 12, 2026 18:37
carljm added a commit that referenced this pull request Feb 14, 2026
* main: (209 commits)
  [ty] Defer base inference for functional `type(...)` classes (#22792)
  flake8-executable: allow global flags in uv shebangs (EXE003) (#22582)
  [ty] Add `replace-imports-with-any` option (#23122)
  Update html comments in mdtests (#23269)
  Apply ruff formatting to mdtests (#22935)
  [ty] Exclude test-related symbols from non-first-party packages in auto-import completions
  [ty] Refactor `CursorTest` helper to support site-packages
  [ty] Qualify inlay hint edit symbol when possibly referencing another variable (#23265)
  [ty] Avoid `UnionBuilder` overhead when creating a new union from the filtered elements of an existing union (#22352)
  [ty] Refactor TypedDict key assignment validation (#23262)
  [ty] Improve Python environment path documentation (#23256)
  [ty] loop control flow analysis using loop header definitions
  Prepare for 0.15.1 (#23253)
  Remove docker-run-action (#23254)
  [ty] Allow discovering dependencies in system Python environments (#22994)
  Ensure pending suppression diagnostics are reported (#23242)
  [`isort`] support for configurable import section heading comments (#23151)
  [ty] Fix method calls on subclasses of `Any` (#23248)
  [ty] Fix bound method access on `None` (#23246)
  Make range suppression test snapshot actually useful (#23251)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal An internal refactor or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants