diff --git a/tests/othertests/templates.py b/tests/othertests/templates.py
index 5e3afd01e4..bfb62c7bd1 100644
--- a/tests/othertests/templates.py
+++ b/tests/othertests/templates.py
@@ -299,8 +299,8 @@ TEMPLATE_TESTS = {
"""),
# {% spaceless %} tag
- 'spaceless01': ("{% spaceless %} text {% endspaceless %}", {}, " text "),
- 'spaceless02': ("{% spaceless %} \n text \n {% endspaceless %}", {}, " text "),
+ 'spaceless01': ("{% spaceless %} text {% endspaceless %}", {}, " text "),
+ 'spaceless02': ("{% spaceless %} \n text \n {% endspaceless %}", {}, " text "),
'spaceless03': ("{% spaceless %}text{% endspaceless %}", {}, "text"),
# simple translation of a string delimited by '