Commit f4f7b2230c43727fc1a2d394dd19521bbaf92921

Martin Mitas 2017-07-24T20:15:09

pathological_tests.py: Allow Windowish line ends.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/test/pathological_tests.py b/test/pathological_tests.py
index 77e4165..702c60e 100644
--- 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+/')