Remove Request.getfuncargvalue

This commit is contained in:
Bruno Oliveira
2019-06-30 11:02:46 -03:00
parent 4f9bf028f5
commit be91c4d932
5 changed files with 20 additions and 44 deletions

View File

@@ -36,9 +36,6 @@ FIXTURE_NAMED_REQUEST = PytestDeprecationWarning(
CFG_PYTEST_SECTION = "[pytest] section in {filename} files is no longer supported, change to [tool:pytest] instead."
GETFUNCARGVALUE = RemovedInPytest4Warning(
"getfuncargvalue is deprecated, use getfixturevalue"
)
FUNCARGNAMES = PytestDeprecationWarning(
"The `funcargnames` attribute was an alias for `fixturenames`, "

View File

@@ -470,13 +470,6 @@ class FixtureRequest(FuncargnamesCompatAttr):
"""
return self._get_active_fixturedef(argname).cached_result[0]
def getfuncargvalue(self, argname):
""" Deprecated, use getfixturevalue. """
from _pytest import deprecated
warnings.warn(deprecated.GETFUNCARGVALUE, stacklevel=2)
return self.getfixturevalue(argname)
def _get_active_fixturedef(self, argname):
try:
return self._fixture_defs[argname]