[svn r63588] shift running of test item to be done through a plugin method.
--HG-- branch : trunk
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user