From 072b4313a4de233df624776dcd9892e5dd24b8d8 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 27 Dec 2014 21:31:15 -0800 Subject: pathological_tests.py: limit to 65000 reps. This is because some versions of python have a limit of N = 65535 in regex `{N}`. --- test/pathological_tests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test') 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("(a a ){100000}b( a a){100000}")), + (("*a **a " * 65000) + "b" + (" a** a*" * 65000), + re.compile("(a a ){65000}b( a a){65000}")), "nested brackets": (("[" * 50000) + "a" + ("]" * 50000), re.compile("\[{50000}a\]{50000}")), -- cgit v1.2.3