Skip to content

Commit

Permalink
pytest.raises for RuntimeError
Browse files Browse the repository at this point in the history
  • Loading branch information
lgray authored Oct 17, 2023
1 parent c99aefe commit 1acd191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_nanoevents.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def test_read_nanodata(suffix):
def test_missing_eventIds_error():
path = os.path.abspath("tests/samples/missing_luminosityBlock.root") + ":Events"
with pytest.raises(
Exception,
RuntimeError,
match="There are missing event ID fields: ['luminosityBlock'] \n\n\
The event ID fields ['run', 'luminosityBlock', 'event'] are necessary to perform sub-run identification \
(e.g. for corrections and sub-dividing data during different detector conditions),\
Expand Down

0 comments on commit 1acd191

Please sign in to comment.