summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-04-15 08:47:25 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-04-15 08:47:25 -0700
commit9f8ef820301951f36301c1a40d036cafeaa78619 (patch)
tree3da63d52159f098f9e477ab4dc333211a8174845 /test
parent02c7e76675c96135a87d264b68347a0479a1047d (diff)
pathological_tests.py: make tests run faster.
- commented out the (already ignored) "many references" test, which times out - reduced the iterations for a couple other tests
Diffstat (limited to 'test')
-rw-r--r--test/pathological_tests.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/pathological_tests.py b/test/pathological_tests.py
index de7d3b7..031acbd 100644
--- a/test/pathological_tests.py
+++ b/test/pathological_tests.py
@@ -64,17 +64,17 @@ pathological = {
("abc\u0000de\u0000",
re.compile("abc\ufffd?de\ufffd?")),
"backticks":
- ("".join(map(lambda x: ("e" + "`" * x), range(1,10000))),
+ ("".join(map(lambda x: ("e" + "`" * x), range(1,5000))),
re.compile("^<p>[e`]*</p>\n$")),
"unclosed links A":
- ("[a](<b" * 50000,
- re.compile("(\[a\]\(&lt;b){50000}")),
+ ("[a](<b" * 30000,
+ re.compile("(\[a\]\(&lt;b){30000}")),
"unclosed links B":
- ("[a](b" * 50000,
- re.compile("(\[a\]\(b){50000}")),
- "many references":
- ("".join(map(lambda x: ("[" + str(x) + "]: u\n"), range(1,50000 * 16))) + "[0] " * 50000,
- re.compile("(\[0\] ){49999}"))
+ ("[a](b" * 30000,
+ re.compile("(\[a\]\(b){30000}")),
+# "many references":
+# ("".join(map(lambda x: ("[" + str(x) + "]: u\n"), range(1,5000 * 16))) + "[0] " * 5000,
+# re.compile("(\[0\] ){4999}"))
}
whitespace_re = re.compile('/s+/')