Skip to content

Commit

Permalink
specify tree
Browse files Browse the repository at this point in the history
  • Loading branch information
lgray authored Oct 17, 2023
1 parent 33411f8 commit 0810dd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_nanoevents.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def test_read_nanodata(suffix):


def test_missing_eventIds_error():
path = os.path.abspath("tests/samples/missing_luminosityBlock.root")
path = os.path.abspath("tests/samples/missing_luminosityBlock.root") + ":Events"
with pytest.raises(
Exception,
match="There are missing event ID fields: ['luminosityBlock'] \n\n\
Expand All @@ -174,7 +174,7 @@ def test_missing_eventIds_error():


def test_missing_eventIds_warning():
path = os.path.abspath("tests/samples/missing_luminosityBlock.root")
path = os.path.abspath("tests/samples/missing_luminosityBlock.root") + ":Events"
with pytest.raises(RuntimeWarning, match="Missing event_ids : ['luminosityBlock']"):
NanoAODSchema.error_missing_event_ids = False
factory = NanoEventsFactory.from_root(path, schemaclass=NanoAODSchema)
Expand Down

0 comments on commit 0810dd8

Please sign in to comment.