From 1974e5ecf64cc2e988a573cc31224be174c1e625 Mon Sep 17 00:00:00 2001 From: fijal Date: Tue, 30 Jan 2007 17:54:14 +0100 Subject: [PATCH] [svn r37620] ensure 2.5 compatibility --HG-- branch : trunk --- py/compat/doctest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/compat/doctest.py b/py/compat/doctest.py index e4348b525..7e48f7358 100644 --- a/py/compat/doctest.py +++ b/py/compat/doctest.py @@ -1324,7 +1324,7 @@ class DocTestRunner: __LINECACHE_FILENAME_RE = re.compile(r'[\w\.]+)' r'\[(?P\d+)\]>$') - def __patched_linecache_getlines(self, filename): + def __patched_linecache_getlines(self, filename, additional_arg=None): m = self.__LINECACHE_FILENAME_RE.match(filename) if m and m.group('name') == self.test.name: example = self.test.examples[int(m.group('examplenum'))]