Skip to content

Commit

Permalink
download file from data repo fork
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Nov 20, 2023
1 parent 06af00d commit 50b9ca4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_0692_fsspec_reading.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,18 @@ def test_fsspec_zip(tmp_path):
],
)
def test_issue_1035(handler):
# remove after https://github.com/scikit-hep/scikit-hep-testdata/pull/132
with fsspec.open(
"https://github.com/lobis/scikit-hep-testdata/raw/main/src/skhep_testdata/data/uproot-issue-1035.root"
) as f_remote:
with open(
os.path.join(
skhep_testdata.local_files._cache_path(), "uproot-issue-1035.root"
),
"wb",
) as f_local:
f_local.write(f_remote.read())

with uproot.open(
skhep_testdata.data_path("uproot-issue-1035.root"), handler=handler
) as f:
Expand Down

0 comments on commit 50b9ca4

Please sign in to comment.