Skip to content

Commit

Permalink
Do not hide traceback with failures from --fail-on-template-vars
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed authored and dulacp committed Dec 2, 2017
1 parent 7896631 commit 022e20f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pytest_django/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ def __mod__(self, var):
else:
msg = "Undefined template variable '%s'" % var
if self.fail:
pytest.fail(msg, pytrace=False)
pytest.fail(msg)
else:
return msg

Expand Down
2 changes: 1 addition & 1 deletion tests/test_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_ignore(client):
origin = "'invalid_template.html'"
result.stdout.fnmatch_lines_random([
"tpkg/test_the_test.py F.",
"Undefined template variable 'invalid_var' in {}".format(origin)
"E * Failed: Undefined template variable 'invalid_var' in {}".format(origin)
])


Expand Down

0 comments on commit 022e20f

Please sign in to comment.