]> git.ipfire.org Git - thirdparty/jinja.git/commit
Tests: Make "Traceback did not match" an actual f-string 1525/head
authorMiro Hrončok <miro@hroncok.cz>
Tue, 2 Nov 2021 15:47:28 +0000 (16:47 +0100)
committerGitHub <noreply@github.com>
Tue, 2 Nov 2021 15:47:28 +0000 (16:47 +0100)
commite32c985af3a419ae2ea0853ad8084a12ab62745b
tree968da621bc406a582bb859f06989777d3c9c57e3
parent15f02c471c0253707ef17d54c9fa736bbb95d289
Tests: Make "Traceback did not match" an actual f-string

Otherwise the failure looks like this:

    >       assert (
                m is not None
            ), "Traceback did not match:\n\n{''.join(tb)}\nexpected:\n{expected_tb}"
    E       AssertionError: Traceback did not match:
    E
    E         {''.join(tb)}
    E         expected:
    E         {expected_tb}
    E       assert None is not None
tests/test_debug.py