Commit e7b84d65a42048f812a006e88ca1b353d7828974

Martin Mitas 2018-05-28T21:09:32

pathological_tests.py: Fix test compatibility with Windows.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/test/pathological_tests.py b/test/pathological_tests.py
index 309e7c2..cf31408 100755
--- a/test/pathological_tests.py
+++ b/test/pathological_tests.py
@@ -67,7 +67,7 @@ pathological = {
                   re.compile("(\[0\] ){49999}")),
     "deeply nested lists":
                  ("".join(map(lambda x: ("  " * x + "* a\n"), range(0,1000))),
-                  re.compile("<ul>\n(<li>a<ul>\n){999}<li>a</li>\n</ul>\n(</li>\n</ul>\n){999}"))
+                  re.compile("<ul>\r?\n(<li>a<ul>\r?\n){999}<li>a</li>\r?\n</ul>\r?\n(</li>\r?\n</ul>\r?\n){999}"))
     }
 
 whitespace_re = re.compile('/s+/')