diff options
-rw-r--r-- | HISTORY.txt | 4 | ||||
-rwxr-xr-x | test/test_parsers/test_get_parser_class.py | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/HISTORY.txt b/HISTORY.txt index 8dc9c44fe..57709edd3 100644 --- a/HISTORY.txt +++ b/HISTORY.txt @@ -147,6 +147,10 @@ Release 0.20b (unpublished) .. _coverage.py: https://pypi.org/project/coverage/ +* test/test_parsers/test_get_parser_class.py + + - Fix regex to match multiline message "requires ... recommonmark" + * tools/ - Moved ``quicktest.py`` to ``tools/dev/``. diff --git a/test/test_parsers/test_get_parser_class.py b/test/test_parsers/test_get_parser_class.py index ed6a9a547..ba42c34e7 100755 --- a/test/test_parsers/test_get_parser_class.py +++ b/test/test_parsers/test_get_parser_class.py @@ -48,8 +48,9 @@ class GetParserClassTestCase(unittest.TestCase): class RecommonmarkMissingTests(unittest.TestCase): def test_missing_parser_message(self): + # match multiline message (?s) = re.DOTALL "." also matches newline with self.assertRaisesRegex(ImportError, - 'requires the.*package .* recommonmark'): + '(?s)requires the.*package .*recommonmark'): publish_string('test data', parser_name='recommonmark') |