Closed
Description
When testing a package with pytest 3, I get a deprecation error due to the use of getfuncargvalue
in doctest. The interesting part of the trace is:
self = DoctestItem 'astroquery.utils.url_helpers.urljoin_keep_path'
def setup(self):
if self.dtest is not None:
self.fixture_request = _setup_fixtures(self)
globs = dict(getfixture=self.fixture_request.getfixturevalue)
> for name, value in self.fixture_request.getfuncargvalue('doctest_namespace').items():
/usr/lib/python2.7/dist-packages/_pytest/doctest.py:91:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <FixtureRequest for <DoctestItem 'astroquery.utils.url_helpers.urljoin_keep_path'>>
argname = 'doctest_namespace'
def getfuncargvalue(self, argname):
""" Deprecated, use getfixturevalue. """
from _pytest import deprecated
warnings.warn(
deprecated.GETFUNCARGVALUE,
> DeprecationWarning)
E DeprecationWarning: use of getfuncargvalue is deprecated, use getfixturevalue
/usr/lib/python2.7/dist-packages/_pytest/fixtures.py:446: DeprecationWarning
Here is a full log file: pytest_log.txt
Metadata
Metadata
Assignees
Labels
No labels