[svn r63914] py.log._apiwarn is fine enough because it's something

of an py lib internal api deprecation mechanism atm.

--HG--
branch : trunk
This commit is contained in:
hpk
2009-04-09 22:34:28 +02:00
parent 2ffb68c177
commit 58cc8c29d3
7 changed files with 11 additions and 11 deletions

View File

@@ -441,7 +441,7 @@ class Directory(FSCollector):
def consider_dir(self, path, usefilters=None):
if usefilters is not None:
py.log.APIWARN("0.99", "usefilters argument not needed")
py.log._apiwarn("0.99", "usefilters argument not needed")
res = self.config.api.pytest_collect_recurse(path=path, parent=self)
if res is None or res:
return self.config.api.pytest_collect_directory(
@@ -478,13 +478,13 @@ class Item(Node):
""" execute this test item."""
def warnoldcollect():
py.log.APIWARN("1.0",
py.log._apiwarn("1.0",
"implement collector.collect() instead of "
"collector.run() and collector.join()",
stacklevel=2)
def warnoldtestrun():
py.log.APIWARN("1.0",
py.log._apiwarn("1.0",
"implement item.runtest() instead of "
"item.run() and item.execute()",
stacklevel=2)