From d9f57630fed16bd1e97737f8afc22b5cc6645769 Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Thu, 14 Oct 2010 20:56:20 +0000 Subject: Fix the regex to match all kind of filenames, for interactive debugging in doctests. (issue #9409) --- Lib/doctest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/doctest.py') diff --git a/Lib/doctest.py b/Lib/doctest.py index 0a0dafdfae..e15f70490f 100644 --- a/Lib/doctest.py +++ b/Lib/doctest.py @@ -1319,7 +1319,7 @@ class DocTestRunner: self.tries += t __LINECACHE_FILENAME_RE = re.compile(r'[\w\.]+)' + r'(?P.+)' r'\[(?P\d+)\]>$') def __patched_linecache_getlines(self, filename, module_globals=None): m = self.__LINECACHE_FILENAME_RE.match(filename) -- cgit v1.2.1