From 8b933114fda3f485b58ebc2e93c0ecd85f6e34cc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 17 Oct 2023 19:42:04 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_nanoevents.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_nanoevents.py b/tests/test_nanoevents.py index 2f26c7c71..bbf679222 100644 --- a/tests/test_nanoevents.py +++ b/tests/test_nanoevents.py @@ -175,7 +175,9 @@ def test_missing_eventIds_error(): def test_missing_eventIds_warning(): path = os.path.abspath("tests/samples/missing_luminosityBlock.root") + ":Events" - with pytest.warns(RuntimeWarning, match=r"Missing event_ids \: \[\'luminosityBlock\'\]"): + with pytest.warns( + RuntimeWarning, match=r"Missing event_ids \: \[\'luminosityBlock\'\]" + ): NanoAODSchema.error_missing_event_ids = False factory = NanoEventsFactory.from_root(path, schemaclass=NanoAODSchema) factory.events()