Skip to content

Commit

Permalink
Update test/k4FWCoreTest/options/CheckOutputFiles.py
Browse files Browse the repository at this point in the history
Co-authored-by: Andre Sailer <[email protected]>
  • Loading branch information
m-fila and andresailer committed Sep 2, 2024
1 parent 8f8a1fb commit 3eaf4f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/k4FWCoreTest/options/CheckOutputFiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
)


Expand Down

0 comments on commit 3eaf4f2

Please sign in to comment.