Skip to content
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")