diff --git a/Lib/doctest.py b/Lib/doctest.py index 5dbd3d459e7..0b485f1f74e 100644 --- a/Lib/doctest.py +++ b/Lib/doctest.py @@ -553,7 +553,7 @@ class DocTestParser: # Want consists of any non-blank lines that do not start with PS1. (?P (?:(?![ ]*$) # Not a blank line (?![ ]*>>>) # Not a line starting with PS1 - .*$\n? # But any other line + .+$\n? # But any other line )*) ''', re.MULTILINE | re.VERBOSE)