Skip to content

Commit 476baa8

Browse files
author
Scott Wales
committed
Catch exit
1 parent 546be36 commit 476baa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_esgf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def test_checksum_id_empty(session):
130130
Raise an exception if not matches found on ESGF
131131
"""
132132
with mock.patch('clef.esgf.esgf_query', side_effect=empty_query):
133-
with pytest.raises(Exception):
133+
with pytest.raises(SystemExit):
134134
table = find_checksum_id('')
135135

136136
def test_checksum_id_missing(session):

0 commit comments

Comments
 (0)