Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(serializer): raise TypeError when serializing non-byte like object in binary mode #951

Merged
merged 1 commit into from
Feb 17, 2025

Conversation

noahnu
Copy link
Collaborator

@noahnu noahnu commented Feb 17, 2025

Improves docs + error message.

Closes #749

Verified

This commit was signed with the committer’s verified signature. The key has expired.
radovanradic Radovan Radic
…t in binary mode
@noahnu noahnu linked an issue Feb 17, 2025 that may be closed by this pull request
Copy link

codecov bot commented Feb 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Impacted file tree graph

@@           Coverage Diff           @@
##             next     #951   +/-   ##
=======================================
  Coverage   97.77%   97.78%           
=======================================
  Files          21       21           
  Lines        1617     1623    +6     
=======================================
+ Hits         1581     1587    +6     
  Misses         36       36           

@noahnu noahnu merged commit 687c32f into next Feb 17, 2025
14 of 15 checks passed
@noahnu noahnu deleted the bugfix/749 branch February 17, 2025 18:20
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Benchmark

Benchmark suite Current: a010e66 Previous: b7f5a9d Ratio
benchmarks/test_1000x.py::test_1000x_reads 0.7905086748762699 iter/sec (stddev: 0.05748305327438527) 0.7985141212181278 iter/sec (stddev: 0.05282275712328596) 1.01
benchmarks/test_1000x.py::test_1000x_writes 0.7034043441102062 iter/sec (stddev: 0.25133582333366294) 0.698901352248691 iter/sec (stddev: 0.24551960819132626) 0.99
benchmarks/test_standard.py::test_standard 0.720447672454809 iter/sec (stddev: 0.06252116930389937) 0.7294161208407376 iter/sec (stddev: 0.06718845368778603) 1.01

This comment was automatically generated by workflow using github-action-benchmark.

noahnu added a commit that referenced this pull request Feb 20, 2025

Verified

This commit was signed with the committer’s verified signature. The key has expired.
radovanradic Radovan Radic
…t in binary mode (#951)
noahnu added a commit that referenced this pull request Mar 8, 2025

Verified

This commit was signed with the committer’s verified signature. The key has expired.
radovanradic Radovan Radic
…t in binary mode (#951)
noahnu added a commit that referenced this pull request Mar 8, 2025

Verified

This commit was signed with the committer’s verified signature. The key has expired.
radovanradic Radovan Radic
…t in binary mode (#951)

(cherry picked from commit 2a67756)
samylaumonier pushed a commit to samylaumonier/syrupy that referenced this pull request Mar 9, 2025

Verified

This commit was signed with the committer’s verified signature. The key has expired.
radovanradic Radovan Radic
# [4.9.0](syrupy-project/syrupy@v4.8.3...v4.9.0) (2025-03-08)

### Bug Fixes

* **serializer:** raise TypeError when serializing non-byte like object in binary mode ([syrupy-project#951](syrupy-project#951)) ([2bd0f54](syrupy-project@2bd0f54))

### Features

* add --snapshot-ignore-file-extensions argument to support DVC ([syrupy-project#943](syrupy-project#943)) ([056cc6e](syrupy-project@056cc6e))
* add compose_matchers utility for composing 1 or more matchers ([syrupy-project#952](syrupy-project#952)) ([157dbec](syrupy-project@157dbec))
* add SingleFileAmberSnapshotExtension as a single-file variant of the default amber extension ([syrupy-project#959](syrupy-project#959)) ([a753b7a](syrupy-project@a753b7a))
* include details about created/updated snapshots in detailed report ([syrupy-project#942](syrupy-project#942)) ([25d37ef](syrupy-project@25d37ef))
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.

Crash with SingleFileSnapshotExtension
1 participant