Skip to content

Commit

Permalink
error tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Nov 16, 2023
1 parent 5b23324 commit 4f7113f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_0916_read_from_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@

import pytest

import sys
import uproot

pytest.importorskip("minio")


@pytest.mark.network
def test_s3_fail():
with pytest.raises(FileNotFoundError, TimeoutError, socket.timeout):
with pytest.raises((FileNotFoundError, TimeoutError, socket.timeout)):
# Sometimes this raises a timeout error that doesn't go away for a long time, we might as well skip it.
with uproot.source.s3.S3Source(
"s3://pivarski-princeton/does-not-exist", timeout=0.1
Expand Down

0 comments on commit 4f7113f

Please sign in to comment.