[py-svn] r37620 - py/trunk/py/compat
fijal at codespeak.net
fijal at codespeak.net
Tue Jan 30 17:54:16 CET 2007
Author: fijal
Date: Tue Jan 30 17:54:14 2007
New Revision: 37620
Modified:
py/trunk/py/compat/doctest.py
Log:
ensure 2.5 compatibility
Modified: py/trunk/py/compat/doctest.py
==============================================================================
--- py/trunk/py/compat/doctest.py (original)
+++ py/trunk/py/compat/doctest.py Tue Jan 30 17:54:14 2007
@@ -1324,7 +1324,7 @@
__LINECACHE_FILENAME_RE = re.compile(r'<doctest '
r'(?P<name>[\w\.]+)'
r'\[(?P<examplenum>\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'))]
More information about the pytest-commit
mailing list