mirror of
https://github.com/python/cpython.git
synced 2025-08-18 15:51:23 +00:00
Merged revisions 85495 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85495 | florent.xicluna | 2010-10-14 22:56:20 +0200 (jeu., 14 oct. 2010) | 3 lines Fix the regex to match all kind of filenames, for interactive debugging in doctests. (issue #9409) ........
This commit is contained in:
parent
8299393122
commit
b67660fcce
3 changed files with 15 additions and 12 deletions
|
@ -1327,7 +1327,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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue