#9950 [ipatests] support for pytest 9
Closed: fixed by frenaud. Opened by slev.

Collecting tests against pytest 9 fails with:

_________ ERROR collecting ipatests/test_ipapython/test_ldap_cache.py __________
 test_ipapython/test_ldap_cache.py:22: in <module>
     @pytest.fixture(scope='class')
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 /usr/lib/python3/site-packages/_pytest/fixtures.py:1239: in __call__
     warnings.warn(MARKED_FIXTURE, stacklevel=2)
 E   pytest.PytestRemovedIn9Warning: Marks applied to fixtures have no effect
 E   See docs: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function

https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function

Applying a mark to a fixture function never had any effect, but it is a common user error.


Metadata Update from @slev:
- Issue assigned to slev

master:

  • 20a6ee4296a18a8212ed49af928345c289c16995 ipatest: make tests compatible with Pytest 9

Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/8198

ipa-4-13:

  • 0bf2a549a8a858c393ef59487bc1d395e5535c07 ipatest: make tests compatible with Pytest 9

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata