Ticket #5362: 5362_fix.diff
File 5362_fix.diff, 992 bytes (added by , 17 years ago) |
---|
-
django/contrib/markup/tests.py
61 61 t = Template("{{ rest_content|restructuredtext }}") 62 62 rendered = t.render(Context(locals())).strip() 63 63 if docutils: 64 self.assertEqual(rendered, """<p>Paragraph 1</p> 64 try: 65 # docutils v0.4 and earlier 66 self.assertEqual(rendered, """<p>Paragraph 1</p> 65 67 <p>Paragraph 2 with a <a class="reference" href="http://www.example.com/">link</a></p>""") 68 except AssertionError, e: 69 # newer versions of docutils (latest source) 70 self.assertEqual(rendered, """<p>Paragraph 1</p> 71 <p>Paragraph 2 with a <a class="reference external" href="http://www.example.com/">link</a></p>""") 66 72 else: 67 73 self.assertEqual(rendered, rest_content) 68 74