summaryrefslogtreecommitdiffstats
path: root/Lib/doctest.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2010-10-14 20:56:20 (GMT)
committerFlorent Xicluna <florent.xicluna@gmail.com>2010-10-14 20:56:20 (GMT)
commitd9f57630fed16bd1e97737f8afc22b5cc6645769 (patch)
tree8a0a93c0bc7be99d617d4e675e11ccce5ac6e2be /Lib/doctest.py
parentd778e568baa0cefaeca379366719877db653b663 (diff)
downloadcpython-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.py2
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)