[svn r63359] change funcargs naming to use __
--HG-- branch : trunk
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user