Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #2397 -- fixed markdown test to be a bit more lenient in what c…

…ounts as a

pass due to whitespace differences between markdown versions. Thanks to for the patch.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit dd19218f4e89d5525f9834348bc6f94410c60862 1 parent 1687b02
@malcolmt malcolmt authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/othertests/
4 tests/othertests/
@@ -1,6 +1,7 @@
# Quick tests for the markup templatetags (django.contrib.markup)
from django.template import Template, Context, add_to_builtins
+import re
@@ -47,7 +48,8 @@
t = Template("{{ markdown_content|markdown }}")
rendered = t.render(Context(locals())).strip()
if markdown:
- assert rendered == """<p>Paragraph 1</p><h2>An h2</h2>"""
+ pattern = re.compile("""<p>Paragraph 1\s*</p>\s*<h2>\s*An h2</h2>""")
+ assert pattern.match(rendered)
assert rendered == markdown_content
Please sign in to comment.
Something went wrong with that request. Please try again.