summaryrefslogtreecommitdiff
path: root/tests/template_backends
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-01-20 23:09:10 -0800
committerTim Graham <timograham@gmail.com>2018-01-21 02:09:10 -0500
commitff05de760cc4ef4c7f188e163c722ec3bc1f0cbf (patch)
treeba133d0ecea7521935c98cf1c058df4e6a9ff233 /tests/template_backends
parent4b0f39d9fb2033a9597e30ac13af162440b82ebc (diff)
downloaddjango-ff05de760cc4ef4c7f188e163c722ec3bc1f0cbf.tar.gz
Fixed #29038 -- Removed closing slash from HTML void tags.
Diffstat (limited to 'tests/template_backends')
-rw-r--r--tests/template_backends/test_dummy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/template_backends/test_dummy.py b/tests/template_backends/test_dummy.py
index 92861c24da..24c30c97e3 100644
--- a/tests/template_backends/test_dummy.py
+++ b/tests/template_backends/test_dummy.py
@@ -81,7 +81,7 @@ class TemplateStringsTests(SimpleTestCase):
template = self.engine.get_template('template_backends/csrf.html')
content = template.render(request=request)
- expected = '<input type="hidden" name="csrfmiddlewaretoken" value="([^"]+)" />'
+ expected = '<input type="hidden" name="csrfmiddlewaretoken" value="([^"]+)">'
match = re.match(expected, content) or re.match(expected.replace('"', "'"), content)
self.assertTrue(match, "hidden csrftoken field not found in output")
self.assertTrue(equivalent_tokens(match.group(1), get_token(request)))