aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-12-27 21:31:15 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-12-27 21:31:15 -0800
commit072b4313a4de233df624776dcd9892e5dd24b8d8 (patch)
tree6bc6e03e829567668332391847551236fa6db33c
parent2673db7a57cc4d2ba8aaec2769572a6e539c921b (diff)
pathological_tests.py: limit to 65000 reps.
This is because some versions of python have a limit of N = 65535 in regex `{N}`.
-rw-r--r--test/pathological_tests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/pathological_tests.py b/test/pathological_tests.py
index 8b25137..719e317 100644
--- a/test/pathological_tests.py
+++ b/test/pathological_tests.py
@@ -19,9 +19,10 @@ cmark = CMark(prog=args.program, library_dir=args.library_dir)
# list of pairs consisting of input and a regex that must match the output.
pathological = {
+ # note - some pythons have limit of 65535 for {num-matches} in re.
"nested strong emph":
- (("*a **a " * 100000) + "b" + (" a** a*" * 100000),
- re.compile("(<em>a <strong>a ){100000}b( a</strong> a</em>){100000}")),
+ (("*a **a " * 65000) + "b" + (" a** a*" * 65000),
+ re.compile("(<em>a <strong>a ){65000}b( a</strong> a</em>){65000}")),
"nested brackets":
(("[" * 50000) + "a" + ("]" * 50000),
re.compile("\[{50000}a\]{50000}")),