From c6dd48ceb6c0833dd2cf0a19e9be510e378e933c Mon Sep 17 00:00:00 2001 From: Pey Lian Lim <2090236+pllim@users.noreply.github.com> Date: Mon, 16 Mar 2020 16:16:12 -0400 Subject: [PATCH] Fix comment_characters key typo --- pytest_doctestplus/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]