[pypy-svn] r11627 - pypy/dist/lib-python-2.3.4/test
hpk at codespeak.net
hpk at codespeak.net
Fri Apr 29 16:44:36 CEST 2005
Author: hpk
Date: Fri Apr 29 16:44:36 2005
New Revision: 11627
Modified:
pypy/dist/lib-python-2.3.4/test/conftest.py
Log:
fix output capturing for fine grained
Modified: pypy/dist/lib-python-2.3.4/test/conftest.py
==============================================================================
--- pypy/dist/lib-python-2.3.4/test/conftest.py (original)
+++ pypy/dist/lib-python-2.3.4/test/conftest.py Fri Apr 29 16:44:36 2005
@@ -154,7 +154,8 @@
""" Run a module file and compare its output
to the expected output in the output/ directory.
"""
- def call_capture(self, func, *args):
+ def call_capture(self, space, func, *args):
+ regrtest = self.parent.regrtest
oldsysout = sys.stdout
sys.stdout = capturesysout = py.std.cStringIO.StringIO()
try:
@@ -175,7 +176,7 @@
# their representations
regrtest = self.parent.regrtest
space = gettestobjspace()
- res, output = call_capture(regrtest.run_file, space)
+ res, output = self.call_capture(space, regrtest.run_file, space)
outputpath = regrtest.getoutputpath()
if outputpath:
@@ -198,6 +199,7 @@
def __init__(self, name, parent, regrtest):
super(InterceptedRunModule, self).__init__(name, parent)
self.regrtest = regrtest
+ self.fspath = regrtest.getfspath()
def _prepare(self):
if hasattr(self, 'name2item'):
More information about the Pypy-commit
mailing list