commit f4f7b2230c43727fc1a2d394dd19521bbaf92921
parent 26f14899ed326b123dd8f7accef6e0422c59fe12
Author: Martin Mitas <mity@morous.org>
Date: Mon, 24 Jul 2017 20:15:09 +0200
pathological_tests.py: Allow Windowish line ends.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/pathological_tests.py b/test/pathological_tests.py
@@ -52,13 +52,13 @@ pathological = {
re.compile("\[{50000}a\]{50000}")),
"nested block quotes":
((("> " * 50000) + "a"),
- re.compile("(<blockquote>\n){50000}")),
+ re.compile("(<blockquote>\r?\n){50000}")),
"U+0000 in input":
("abc\u0000de\u0000",
re.compile("abc\ufffd?de\ufffd?")),
"backticks":
("".join(map(lambda x: ("e" + "`" * x), range(1,10000))),
- re.compile("^<p>[e`]*</p>\n$"))
+ re.compile("^<p>[e`]*</p>\r?\n$"))
}
whitespace_re = re.compile('/s+/')