From 0810dd8c0820af04eedb3e2c5dd54f223cad3dfe Mon Sep 17 00:00:00 2001 From: Lindsey Gray Date: Tue, 17 Oct 2023 12:51:16 -0500 Subject: [PATCH] specify tree --- tests/test_nanoevents.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_nanoevents.py b/tests/test_nanoevents.py index 38649ea81..1a29184a2 100644 --- a/tests/test_nanoevents.py +++ b/tests/test_nanoevents.py @@ -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\ @@ -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)