-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for memberwise serialization and raise NotImplementedError as n…
…eeded. (#87) * Check for memberwise serialization and raise NotImplementedError as needed. * Added test.
- Loading branch information
Showing
21 changed files
with
465 additions
and
57 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
tests/test_0087-memberwise-splitting-not-implemented-messages.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# BSD 3-Clause License; see https://github.com/scikit-hep/uproot4/blob/master/LICENSE | ||
|
||
from __future__ import absolute_import | ||
|
||
import pytest | ||
import skhep_testdata | ||
|
||
import uproot4 | ||
|
||
|
||
def test_issue510b(): | ||
with pytest.raises(NotImplementedError): | ||
with uproot4.open(skhep_testdata.data_path("uproot-issue510b.root"))[ | ||
"EDepSimEvents" | ||
] as t: | ||
t["Event"]["Trajectories.Points"].array() | ||
|
||
|
||
def test_issue403(): | ||
with pytest.raises(NotImplementedError): | ||
with uproot4.open(skhep_testdata.data_path("uproot-issue403.root"))[ | ||
"Model" | ||
] as t: | ||
t["Model.collimatorInfo"].array() | ||
|
||
|
||
def test_issue475(): | ||
with pytest.raises(NotImplementedError): | ||
with uproot4.open(skhep_testdata.data_path("uproot-issue475.root"))[ | ||
"Event/Elec/ElecEvent" | ||
] as t: | ||
t["fElecChannels"].array() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.