Commit 75674ae8 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #18647: A regular expression in the doctest module rewritten so that

determined minimal width of repeated subexpression is >0 (an empty line was
not matched in any case).
parents 20c3dd25 1ca66edb
......@@ -557,7 +557,7 @@ class DocTestParser:
# Want consists of any non-blank lines that do not start with PS1.
(?P<want> (?:(?![ ]*$) # Not a blank line
(?![ ]*>>>) # Not a line starting with PS1
.*$\n? # But any other line
.+$\n? # But any other line
)*)
''', re.MULTILINE | re.VERBOSE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment