Skip to content
Myr

Add test for Template.get_corresponding_lineno()

Before adoption: this commit came in with the history the project adopted, so no landing records it.

this currently breaks with an exception inside Jinja

authored by Mr. Senko · committed by Mr. Senko · parent 921eb81 · Browse files · 1 file+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−0 removed

  • tests:+4 added−0 removed

1 file+4 added−0 removed

modified:tests/test_debug.py+4 added
80 unmodified lines
81 'l_1_bar': missing,82 'l_0_baz': missing,83 })84 assert locals == {'foo': 13, 'bar': 99}8586 def test_get_corresponding_lineno_traceback(self, fs_env):87 tmpl = fs_env.get_template('test.html')88 assert tmpl.get_corresponding_lineno(1) == 1