Repository navigation
v7.0.0
Syrupy 7.0.0
(2026-11-10)
Syrupy 7 raises the minimum Python version and hardens snapshot update/cleanup under partial selection and xdist. Please review the breaking changes before upgrading.
Full Changelog: v6.1.1...v7.0.0
Breaking Changes
Dropped Python 3.10
Python 3.10 is end-of-life and is no longer supported. Syrupy 7 requires Python 3.11+.
(#1269)
Features
-
Amber file locking under xdist — amber write locking now turns on automatically whenever pytest-xdist is distributing work. The experimental
--snapshot-file-lockopt-in is removed;--snapshot-file-lock-timeout(default 60s) remains for configuring lock wait time. Default single-process behavior is unchanged. Suites that still pass--snapshot-file-lockshould drop it.(#1242)
-
Python 3.15 — CI and packaging now cover Python 3.15.
Bug Fixes
-
Keep unrun snapshots with
--lf --snapshot-update— last-failed runs are treated as partial sessions, so snapshots for tests that did not run are no longer deleted as unused.(#1257, closes #1251) — thanks @wolfgang-aura
-
Preserve module skips with
--pyargs— module-levelpytest.importorskip()during--pyargspath discovery no longer turns a skipped session into exit code 1. -
Remove snapshots orphaned by deleted test files —
--snapshot-updatenow discovers and removes unused snapshot collections when their owning test modules are gone, including empty per-test-file snapshot directories.(#1258, #1292, closes #1250) — thanks @cpruijsen
-
Retry amber lock creation on Windows — lock creation retries when Windows denies the sentinel write because another process locked the empty region first.
(#1280)
-
xdist unused detection without a gw0 SPOF — every worker sends compressed collected items, and unused delete/fail is skipped when worker reports are incomplete, so a dropped worker report no longer breaks unused detection.
(#1294)
Performance
-
Faster xdist report compression — zlib level 1 is used for worker→controller snapshot collection payloads.
(#1294)
Thank you to the contributors
Thank you to everyone who contributed to this release:
- @wolfgang-aura — keep unrun snapshots with
--lf --snapshot-update(first contribution) - @sean0407 — preserve module skips with
--pyargs(first contribution) - @cpruijsen — remove unused snapshots orphaned by deleted test files (first contribution)