diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2010-10-14 20:56:20 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2010-10-14 20:56:20 (GMT) |
commit | d9f57630fed16bd1e97737f8afc22b5cc6645769 (patch) | |
tree | 8a0a93c0bc7be99d617d4e675e11ccce5ac6e2be /Lib/doctest.py | |
parent | d778e568baa0cefaeca379366719877db653b663 (diff) | |
download | cpython-d9f57630fed16bd1e97737f8afc22b5cc6645769.zip cpython-d9f57630fed16bd1e97737f8afc22b5cc6645769.tar.gz cpython-d9f57630fed16bd1e97737f8afc22b5cc6645769.tar.bz2 |
Fix the regex to match all kind of filenames, for interactive debugging in doctests. (issue #9409)
Diffstat (limited to 'Lib/doctest.py')
-rw-r--r-- | Lib/doctest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py index 0a0dafd..e15f704 100644 --- a/Lib/doctest.py +++ b/Lib/doctest.py @@ -1319,7 +1319,7 @@ class DocTestRunner: self.tries += t __LINECACHE_FILENAME_RE = re.compile(r'<doctest ' - r'(?P<name>[\w\.]+)' + r'(?P<name>.+)' r'\[(?P<examplenum>\d+)\]>$') def __patched_linecache_getlines(self, filename, module_globals=None): m = self.__LINECACHE_FILENAME_RE.match(filename) |