Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pytest 3.x warnings #2

Open
pllim opened this issue Jan 12, 2017 · 1 comment
Open

pytest 3.x warnings #2

pllim opened this issue Jan 12, 2017 · 1 comment

Comments

@pllim
Copy link
Contributor

pllim commented Jan 12, 2017

Fun fun fun... I see this when running pytest 3.0.4 on something else. I was not even using pandokia but somehow pytest has a hook to it in my "stsci" environment.

WI1 .../python2.7/site-packages/pandokia/helpers/pytest_plugin.py:375 'pytest_runtest_makereport' hook uses deprecated __multicall__ argument
WC1 None pytest_funcarg__pdk_test_name: declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0.  Please remove the prefix and use the @pytest.fixture decorator instead.
@pllim pllim closed this as completed Sep 26, 2017
@ariedel ariedel reopened this Jun 14, 2019
@ariedel
Copy link
Contributor

ariedel commented Jun 14, 2019

The warning (on pytest 3.5.2, the version in JWST's Third Party 9.2):

pytest_funcarg__pdk_test_name: declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0. Please remove the prefix and use the @pytest.fixture decorator instead.

And on a more modern version of pytest (4.6.2) it gives this error:
INTERNALERROR> PluginValidationError: unknown hook 'pytest_funcarg__pdk_test_name' in plugin <module 'pandokia.helpers.pytest_plugin' from '/Users/riedel/anacondab/envs/pandeia_9.2/lib/python2.7/site-packages/pandokia-2.4.1-py2.7.egg/pandokia/helpers/pytest_plugin.py'>

Fortunately, that @pytest.fixture decorator is a drop-in replacement (I tried it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants