Skip to content

Commit

Permalink
Add warnings to help debug test failures on github
Browse files Browse the repository at this point in the history
  • Loading branch information
elinscott committed Oct 4, 2024
1 parent 92a7192 commit 3d8b863
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/helpers/patches/_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 3d8b863

Please sign in to comment.