Skip to content

Commit 6151946

Browse files
committed
tweak tests
1 parent e88a8cc commit 6151946

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/iotools/test_merra2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def test_get_merra2_bad_credentials(params, expected, expected_meta):
9898
@pytest.mark.flaky(reruns=RERUNS, reruns_delay=RERUNS_DELAY)
9999
def test_get_merra2_bad_dataset(params, expected, expected_meta):
100100
params['dataset'] = 'nonexistent'
101-
with pytest.raises(requests.exceptions.HTTPError, match='404 for url'):
101+
with pytest.raises(requests.exceptions.HTTPError, match='404'):
102102
pvlib.iotools.get_merra2(**params)
103103

104104

@@ -107,5 +107,5 @@ def test_get_merra2_bad_dataset(params, expected, expected_meta):
107107
@pytest.mark.flaky(reruns=RERUNS, reruns_delay=RERUNS_DELAY)
108108
def test_get_merra2_bad_variables(params, expected, expected_meta):
109109
params['variables'] = ['nonexistent']
110-
with pytest.raises(requests.exceptions.HTTPError, match='400 for url'):
110+
with pytest.raises(requests.exceptions.HTTPError, match='400'):
111111
pvlib.iotools.get_merra2(**params)

0 commit comments

Comments
 (0)