#7981 Pytest4.x warnings
Closed: fixed 4 years ago by cheimes. Opened 4 years ago by slev.

I run the IPA test suite (base and XMLRPC tests) using Pytest 4.6.2.
There are several warnings concerning pytest.config and message.
For example:

  /__w/1/s/.tox/py36/lib/python3.6/site-packages/ipatests/util.py:75: PytestDeprecationWarning: the `pytest.config` global is deprecated.  Please use `request.config` or `pytest_configure` (if you're a pytest plugin) instead.
lib/python3.6/site-packages/ipatests/test_ipaclient/test_csrgen.py::test_CSRGenerator::test_unrecognised_attr_type_raises
  /__w/1/s/.tox/py36/lib/python3.6/site-packages/ipatests/test_ipaclient/test_csrgen.py:262: PytestDeprecationWarning: The 'message' parameter is deprecated.
  (did you mean to use `match='some regex'` to check the exception message?)
  Please see:
    https://docs.pytest.org/en/4.6-maintenance/deprecations.html#message-parameter-of-pytest-raises
    message='unrecognised attribute type: X'):

Expected result: no warnings.


master:

  • d16dd2f Fix Pytest4.1+ warnings about pytest.config
  • 9836511 (HEAD) Fix Pytest4.x warning about message

ipa-4-7:

  • 13dfe2d Fix Pytest4.1+ warnings about pytest.config
  • 7933c8a Fix Pytest4.x warning about message

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

4 years ago

Login to comment on this ticket.

Metadata