[svn r63359] change funcargs naming to use __
--HG-- branch : trunk
This commit is contained in:
4
py/test/dist/testing/test_nodemanage.py
vendored
4
py/test/dist/testing/test_nodemanage.py
vendored
@@ -7,9 +7,9 @@ from py.__.test.dist.nodemanage import NodeManager
|
||||
|
||||
from py.__.test import event
|
||||
|
||||
def pytest_funcarg_source(pyfuncitem):
|
||||
def pytest_funcarg__source(pyfuncitem):
|
||||
return py.test.ensuretemp(pyfuncitem.getmodpath()).mkdir("source")
|
||||
def pytest_funcarg_dest(pyfuncitem):
|
||||
def pytest_funcarg__dest(pyfuncitem):
|
||||
dest = py.test.ensuretemp(pyfuncitem.getmodpath()).mkdir("dest")
|
||||
return dest
|
||||
|
||||
|
||||
4
py/test/dist/testing/test_txnode.py
vendored
4
py/test/dist/testing/test_txnode.py
vendored
@@ -54,12 +54,12 @@ class MySetup:
|
||||
print "exiting:", gw
|
||||
gw.exit()
|
||||
|
||||
def pytest_funcarg_mysetup(pyfuncitem):
|
||||
def pytest_funcarg__mysetup(pyfuncitem):
|
||||
mysetup = MySetup(pyfuncitem)
|
||||
pyfuncitem.addfinalizer(mysetup.finalize)
|
||||
return mysetup
|
||||
|
||||
def pytest_funcarg_testdir(__call__, pyfuncitem):
|
||||
def pytest_funcarg__testdir(__call__, pyfuncitem):
|
||||
# decorate to make us always change to testdir
|
||||
testdir = __call__.execute(firstresult=True)
|
||||
testdir.chdir()
|
||||
|
||||
Reference in New Issue
Block a user