From 3d8b8637692c4e4d0f8218846420874afc4e7066 Mon Sep 17 00:00:00 2001 From: Edward Linscott Date: Fri, 4 Oct 2024 09:53:18 +0200 Subject: [PATCH] Add warnings to help debug test failures on github --- tests/helpers/patches/_check.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/helpers/patches/_check.py b/tests/helpers/patches/_check.py index e72e81d05..64506ec1a 100644 --- a/tests/helpers/patches/_check.py +++ b/tests/helpers/patches/_check.py @@ -344,7 +344,11 @@ def _run(self): bench_process = read_pkl(benchmark_filename(self), base_directory=self.base_directory) # Compare the inputs - assert bench_process.inputs == self.inputs + if not bench_process.inputs == self.inputs: + utils.warn(f'Inputs for {self.prefix} differ from the benchmark') + utils.warn(f'Inputs: {self.inputs}') + utils.warn(f'Benchmark inputs: {bench_process.inputs}') + raise ValueError() unpatched_run(self)