[svn r63359] change funcargs naming to use __

--HG--
branch : trunk
This commit is contained in:
hpk
2009-03-26 13:50:12 +01:00
parent 2c0ec27d1a
commit 662e6905ef
14 changed files with 32 additions and 32 deletions

View File

@@ -13,7 +13,7 @@ class TmpdirPlugin:
""" provide temporary directories to test functions and methods.
"""
def pytest_funcarg_tmpdir(self, pyfuncitem):
def pytest_funcarg__tmpdir(self, pyfuncitem):
name = pyfuncitem.name
return pyfuncitem.config.mktemp(name, numbered=True)
@@ -29,7 +29,7 @@ def test_generic(plugintester):
def test_funcarg(testdir):
item = testdir.getitem("def test_func(tmpdir): pass")
plugin = TmpdirPlugin()
p = plugin.pytest_funcarg_tmpdir(item)
p = plugin.pytest_funcarg__tmpdir(item)
assert p.check()
bn = p.basename.strip("0123456789-")
assert bn.endswith("test_func")