URL: https://github.com/freeipa/freeipa/pull/2571 Author: tiran Title: #2571: [Backport][ipa-4-6] Fix pytest deprecation warning Action: opened
PR body: """ This PR was opened automatically because PR #2569 was pushed to master and backport to ipa-4-6 is required. """ To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/2571/head:pr2571 git checkout pr2571
From 66dd149bf6da5a5265e5aced886133a976e51219 Mon Sep 17 00:00:00 2001 From: Christian Heimes <chei...@redhat.com> Date: Thu, 15 Nov 2018 13:11:52 +0100 Subject: [PATCH] Fix pytest deprecation warning conftest uses the Function attribute of a pytest.Function object. Latest pytest has deprecated the attribute: _pytest.warning_types.RemovedInPytest4Warning: usage of Function.Function is deprecated, please use pytest.Function instead Signed-off-by: Christian Heimes <chei...@redhat.com> --- ipatests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipatests/conftest.py b/ipatests/conftest.py index 9a7f7bac85..5348ac26c1 100644 --- a/ipatests/conftest.py +++ b/ipatests/conftest.py @@ -125,7 +125,7 @@ def pytest_cmdline_main(config): def pytest_runtest_setup(item): - if isinstance(item, item.Function): + if isinstance(item, pytest.Function): if item.get_marker('skip_ipaclient_unittest'): # pylint: disable=no-member if pytest.config.option.ipaclient_unittests:
_______________________________________________ FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/freeipa-devel@lists.fedorahosted.org