Skip to content

Commit 06af00d

Browse files
committed
test different handlers
1 parent c72fecf commit 06af00d

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

tests/test_0692_fsspec_reading.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
import pytest
44
import uproot
55
import uproot.source.fsspec
6+
import uproot.source.file
7+
import uproot.source.xrootd
8+
import uproot.source.s3
69

710
import skhep_testdata
811
import queue
@@ -211,7 +214,17 @@ def test_fsspec_zip(tmp_path):
211214

212215

213216
# https://github.com/scikit-hep/uproot5/issues/1035
214-
def test_issue_1035():
215-
with uproot.open(skhep_testdata.data_path("uproot-issue-1035.root")) as f:
217+
@pytest.mark.parametrize(
218+
"handler",
219+
[
220+
uproot.source.file.MemmapSource,
221+
uproot.source.fsspec.FSSpecSource,
222+
None,
223+
],
224+
)
225+
def test_issue_1035(handler):
226+
with uproot.open(
227+
skhep_testdata.data_path("uproot-issue-1035.root"), handler=handler
228+
) as f:
216229
tree = f["CollectionTree"]
217230
print(tree.keys())

0 commit comments

Comments
 (0)