Skip to content

Commit 43d21a9

Browse files
effigiesmgxd
andauthored
Update templateflow/tests/test_s3.py
Co-authored-by: Mathias Goncalves <[email protected]>
1 parent 8866d1a commit 43d21a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templateflow/tests/test_s3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def test_s3_400_error(monkeypatch):
107107
reload(tf)
108108

109109
monkeypatch.setattr(requests, 'get', mock_get)
110-
with pytest.raises(RuntimeError):
110+
with pytest.raises(RuntimeError, match=r'Failed to download .* code 400'):
111111
tf._s3_get(
112112
Path(tfc.TF_LAYOUT.root)
113113
/ 'tpl-MNI152NLin2009cAsym/tpl-MNI152NLin2009cAsym_res-02_T1w.nii.gz'

0 commit comments

Comments
 (0)