]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: s/yield_fixture/fixture/ 38919/head
authorKefu Chai <kchai@redhat.com>
Fri, 15 Jan 2021 01:27:26 +0000 (09:27 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 15 Jan 2021 01:37:39 +0000 (09:37 +0800)
commit87af6d1f8110204163c9142dda8a82cd73d6cf6d
treefa91fae1e38530c69479fa28d19bbb97600a4e3c
parent72cc819b3aa47cdb684577be1f33021aa9fd2faf
mgr/cephadm: s/yield_fixture/fixture/

silences pytest warning. it complained:`

1: cephadm/tests/fixtures.py:68
1:   /var/ssd/ceph/src/pybind/mgr/cephadm/tests/fixtures.py:68: PytestDeprecationWarning: @pytest.yield_fixture is deprecated.
1:   Use @pytest.fixture instead; they are the same.
1:     @pytest.yield_fixture()

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/cephadm/tests/fixtures.py