[svn r63588] shift running of test item to be done through a plugin method.

--HG--
branch : trunk
This commit is contained in:
hpk
2009-04-03 23:18:41 +02:00
parent 79793d50e2
commit db60fe7f37
7 changed files with 29 additions and 20 deletions

View File

@@ -465,14 +465,8 @@ class Directory(FSCollector):
return self.config.pytestplugins.call_each(
'pytest_collect_directory', path=path, parent=self)
from py.__.test.runner import basic_run_report, forked_run_report
class Item(Node):
""" a basic test item. """
def _getrunner(self):
if self.config.option.boxed:
return forked_run_report
return basic_run_report
def _deprecated_testexecution(self):
if self.__class__.run != Item.run:
warnoldtestrun()