We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8866d1a commit 43d21a9Copy full SHA for 43d21a9
templateflow/tests/test_s3.py
@@ -107,7 +107,7 @@ def test_s3_400_error(monkeypatch):
107
reload(tf)
108
109
monkeypatch.setattr(requests, 'get', mock_get)
110
- with pytest.raises(RuntimeError):
+ with pytest.raises(RuntimeError, match=r'Failed to download .* code 400'):
111
tf._s3_get(
112
Path(tfc.TF_LAYOUT.root)
113
/ 'tpl-MNI152NLin2009cAsym/tpl-MNI152NLin2009cAsym_res-02_T1w.nii.gz'
0 commit comments