From 4f7113f0ba0df8a2a5c8891847827599fa033e57 Mon Sep 17 00:00:00 2001 From: Luis Antonio Obis Aparicio Date: Thu, 16 Nov 2023 12:17:08 -0600 Subject: [PATCH] error tuple --- tests/test_0916_read_from_s3.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_0916_read_from_s3.py b/tests/test_0916_read_from_s3.py index b1a08301a..9ee3e5f13 100644 --- a/tests/test_0916_read_from_s3.py +++ b/tests/test_0916_read_from_s3.py @@ -3,7 +3,6 @@ import pytest -import sys import uproot pytest.importorskip("minio") @@ -11,7 +10,7 @@ @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