From 953aeef8671ebbb8d7dbe1936cc64a4353f94612 Mon Sep 17 00:00:00 2001 From: Mateusz Jakub Fila <37295697+m-fila@users.noreply.github.com> Date: Fri, 30 Aug 2024 08:40:13 +0200 Subject: [PATCH] Update test/k4FWCoreTest/options/CheckOutputFiles.py Co-authored-by: Andre Sailer --- test/k4FWCoreTest/options/CheckOutputFiles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/k4FWCoreTest/options/CheckOutputFiles.py b/test/k4FWCoreTest/options/CheckOutputFiles.py index 9a97b166..aabad67f 100644 --- a/test/k4FWCoreTest/options/CheckOutputFiles.py +++ b/test/k4FWCoreTest/options/CheckOutputFiles.py @@ -63,9 +63,9 @@ def check_metadata(filename, keys, values): podio_reader = podio.root_io.Reader(filename) metadata = podio_reader.get("metadata")[0] for key, value in zip(keys, values): - if metadata.get_parameter(key) != value: + if (metaval := metadata.get_parameter(key)) != value: raise RuntimeError( - f"Metadata parameter {key} does not match the expected value, got {metadata.get_parameter(key)} but expected {value}" + f"Metadata parameter {key} does not match the expected value, got {metaval} but expected {value}" )