diff --git a/pytest_doctestplus/plugin.py b/pytest_doctestplus/plugin.py index 744d3ec..6d90d71 100644 --- a/pytest_doctestplus/plugin.py +++ b/pytest_doctestplus/plugin.py @@ -272,7 +272,7 @@ def parse(self, s, name=None): if ext not in comment_characters: warnings.warn("file format '{}' is not recognized, assuming " "'{}' as the comment character." - .format(ext, comment_characters['rst'])) + .format(ext, comment_characters['.rst'])) ext = '.rst' comment_char = comment_characters[ext]