Skip to content

Commit 50b9ca4

Browse files
committed
download file from data repo fork
1 parent 06af00d commit 50b9ca4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/test_0692_fsspec_reading.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,18 @@ def test_fsspec_zip(tmp_path):
223223
],
224224
)
225225
def test_issue_1035(handler):
226+
# remove after https://github.com/scikit-hep/scikit-hep-testdata/pull/132
227+
with fsspec.open(
228+
"https://github.com/lobis/scikit-hep-testdata/raw/main/src/skhep_testdata/data/uproot-issue-1035.root"
229+
) as f_remote:
230+
with open(
231+
os.path.join(
232+
skhep_testdata.local_files._cache_path(), "uproot-issue-1035.root"
233+
),
234+
"wb",
235+
) as f_local:
236+
f_local.write(f_remote.read())
237+
226238
with uproot.open(
227239
skhep_testdata.data_path("uproot-issue-1035.root"), handler=handler
228240
) as f:

0 commit comments

Comments
 (0)