Skip to content

Commit 1609780

Browse files
authored
tests: test_invalid_template_variable: use include (#506)
This shows issue pytest-dev/pytest#580, which is fixed in pytest 3.2.0.
1 parent 217d093 commit 1609780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def invalid_template(request):
7676
'templates/invalid_template_base.html'
7777
)
7878
django_testdir.create_app_file(
79-
"{% extends 'invalid_template_base.html' %}",
79+
"{% include 'invalid_template_base.html' %}",
8080
'templates/invalid_template.html'
8181
)
8282
django_testdir.create_test_module('''

0 commit comments

Comments
 (0)