From 3eaf4f2e1e32f7b11386d579eda0040a79156f3e 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}" )