better name for the oejskit-compatibility-class.

This commit is contained in:
holger krekel
2012-06-25 17:49:13 +02:00
parent 91b6f2bda8
commit b4b86159cd
2 changed files with 19 additions and 19 deletions

View File

@@ -496,7 +496,7 @@ def getfuncargnames(function, startindex=None):
def fillfuncargs(node):
""" fill missing funcargs. """
if not isinstance(node, Function):
node = FuncargRequest(pyfuncitem=node)
node = OldFuncargRequest(pyfuncitem=node)
if node.funcargs is None:
node.funcargs = getattr(node, "_funcargs", {})
if not isinstance(node, Function) or not node._isyieldedfunction():
@@ -882,7 +882,7 @@ def itemapi_property(name, set=False):
return property(get, set, None, doc)
class FuncargRequest(Request):
class OldFuncargRequest(Request):
""" (deprecated) helper interactions with a test function invocation.
Note that there is an optional ``param`` attribute in case
@@ -901,7 +901,7 @@ class FuncargRequest(Request):
pass
def __repr__(self):
return "<FuncargRequest for %r>" % (self._pyfuncitem.name)
return "<OldFuncargRequest for %r>" % (self._pyfuncitem.name)
_getscopeitem = itemapi_property("_getscopeitem")
funcargs = itemapi_property("funcargs", set=True)