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

handle junk bytes after tree #1822

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
3.5.0 (unreleased)
------------------

-
- handle junk bytes after tree (before or after blocks) [#1822]

3.4.0 (2024-08-04)
------------------
Expand Down
Binary file added asdf/_tests/data/junk_after_blocks.asdf
Binary file not shown.
Binary file added asdf/_tests/data/junk_before_blocks.asdf
Binary file not shown.
Binary file added asdf/_tests/data/no_junk.asdf
Binary file not shown.
17 changes: 17 additions & 0 deletions asdf/_tests/test_junk_after_tree.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from pathlib import Path

import asdf

TEST_DATA_DIRECTORY = Path(__file__).parent / "data"


def test_no_junk():
asdf.open(TEST_DATA_DIRECTORY / "no_junk.asdf")


def test_junk_before_blocks():
asdf.open(TEST_DATA_DIRECTORY / "junk_before_blocks.asdf")


def test_junk_after_blocks():
asdf.open(TEST_DATA_DIRECTORY / "junk_after_blocks.asdf")
Loading