Skip to content

Commit 5b1c175

Browse files
Copilotfriggeri
andcommitted
Improve test specificity for exception types
Co-authored-by: friggeri <106686+friggeri@users.noreply.github.com>
1 parent 32d554e commit 5b1c175

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/test_unknown_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def test_malformed_data_raises_exception(self):
5454
"data": {},
5555
}
5656

57-
with pytest.raises(Exception):
57+
with pytest.raises((ValueError, TypeError, OSError)):
5858
session_event_from_dict(malformed_event2)
5959

6060
def test_handler_catches_parsing_exceptions(self):

0 commit comments

Comments
 (0)