Skip to content
Open
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 reference/root-io-spec
Submodule root-io-spec updated 319 files
13 changes: 13 additions & 0 deletions tests/test_spec_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
``gen/cases/``. The submodule is optional: without it this module is skipped.
"""

import struct
from pathlib import Path
from typing import NamedTuple

Expand Down Expand Up @@ -48,6 +49,9 @@ class ExpectedFailure(NamedTuple):
"classes/matrix.root": ExpectedFailure(
(73,), ValueError, "Unknown type TMatrixTSym3cfloat3e"
),
"classes/roofit.root": ExpectedFailure(
(71,), ValueError, "buffer not empty after reading object of type RooLinkedList"
),
"classes/tarray.root": ExpectedFailure((107,), ValueError, "Unknown type TArrayL "),
"serialization/clones-array.root": ExpectedFailure(
(101,), ValueError, "Unknown type TClonesArray"
Expand All @@ -73,6 +77,9 @@ class ExpectedFailure(NamedTuple):
),
# A bare assert on the end of a column in the member-wise branch of StdMap
"serialization/pairs.root": ExpectedFailure((70,), AssertionError, "^$"),
"serialization/pointer-collection.root": ExpectedFailure(
(105,), ValueError, "Expected a version in the StdVector header"
),
"serialization/pointer-forms.root": ExpectedFailure(
(91,), ValueError, "85 is not a valid ElementType"
),
Expand All @@ -89,6 +96,9 @@ class ExpectedFailure(NamedTuple):
),
# TH1L derives from the missing TArrayL64 (#107); its version word of 0 is
# also misread as announcing a checksum (#111)
"serialization/unframed-records.root": ExpectedFailure(
(123, 101), AttributeError, "type object 'int' has no attribute 'read'"
),
"serialization/version-zero.root": ExpectedFailure(
(107, 111), TypeError, r"__init__\(\) missing 36 required positional arguments"
),
Expand All @@ -113,6 +123,9 @@ class ExpectedFailure(NamedTuple):
"ttree/tree-index.root": ExpectedFailure(
(101,), ValueError, "Unknown type TTreeIndex"
),
"written/two-versions.root": ExpectedFailure(
(22,), struct.error, "unpack requires a buffer of 8 bytes"
),
}


Expand Down
Loading