diff --git a/test/unit/test_web.py b/test/unit/test_web.py index f729304c1c..193b27f9ba 100644 --- a/test/unit/test_web.py +++ b/test/unit/test_web.py @@ -159,7 +159,8 @@ def normalise_generated(self, s): def compare_with_reference(self, refname, generated): reffile = path(__file__).dirname() / "reference_templates" / refname generated = generated.split("\n") - reffile.write_lines(generated) + # Temporarily uncomment the following line to regenerate the templates + # reffile.write_lines(generated) ref = reffile.lines(retain=False) d = "\n".join(unified_diff(ref, generated)) return d