finalized docs and funcarg attributes, i think
--HG-- branch : trunk
This commit is contained in:
@@ -403,6 +403,7 @@ class FuncargRequest:
|
||||
self.argname = argname
|
||||
self.function = pyfuncitem.obj
|
||||
self.config = pyfuncitem.config
|
||||
self.fspath = pyfuncitem.fspath
|
||||
self._plugins = self._getplugins()
|
||||
self._methods = self.config.pluginmanager.listattr(
|
||||
plugins=self._plugins,
|
||||
@@ -431,8 +432,12 @@ class FuncargRequest:
|
||||
def addfinalizer(self, finalizer):
|
||||
self._pyfuncitem.addfinalizer(finalizer)
|
||||
|
||||
def getfspath(self):
|
||||
return self._pyfuncitem.fspath
|
||||
def maketempdir(self):
|
||||
basetemp = self.config.getbasetemp()
|
||||
tmp = py.path.local.make_numbered_dir(
|
||||
prefix=self.function.__name__ + "_",
|
||||
keep=0, rootdir=basetemp)
|
||||
return tmp
|
||||
|
||||
def _raiselookupfailed(self):
|
||||
available = []
|
||||
@@ -447,4 +452,5 @@ class FuncargRequest:
|
||||
msg += "\n available funcargs: %s" %(", ".join(available),)
|
||||
raise LookupError(msg)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user