Fix the regex to match all kind of filenames, for interactive debugging in doctests. (issue #9409)
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 @@
         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)