Permalink
Browse files

[bug 886114] Strip comments for realz.

This new version of py-wikimarkup respects our strip_comments
parameter when calling bleach.
  • Loading branch information...
1 parent d0a42bc commit b07dc8f2dd064b41dd2bf30402fd1f39233c23ec @rlr rlr committed Jul 3, 2013
Showing with 4 additions and 4 deletions.
  1. +3 −3 kitsune/wiki/tests/test_parser.py
  2. +1 −1 vendor/src/py-wikimarkup
@@ -140,13 +140,13 @@ def test_comments(self):
# This used to truncate after the comment when rendered:
eq_(p.parse('Start <!-- <foo --> End'),
- '<p>Start <!-- <foo --> End\n</p>')
+ '<p>Start End\n</p>')
# Just make sure these don't go awry either:
eq_(p.parse('Start <!-- <foo> --> End'),
- '<p>Start <!-- <foo> --> End\n</p>')
+ '<p>Start End\n</p>')
eq_(p.parse('Start <!-- foo> --> End'),
- '<p>Start <!-- foo> --> End\n</p>')
+ '<p>Start End\n</p>')
def test_internal_links(self):
"""Make sure internal links work correctly when not to redirected

0 comments on commit b07dc8f

Please sign in to comment.