#6591 pytest 3.0: yield tests are deprecated
Closed: fixed Opened by cheimes.

pytest 3.0 has deprecated yield tests in favor of parametrized tests with @pytest.mark.parametrize().

ipatests/test_ipapython/test_ipautil.py yield tests are deprecated, and scheduled to be removed in pytest 4.0
...
test_ipapython/test_ssh.py yield tests are deprecated, and scheduled to be removed in pytest 4.0

mass moving python3 tickets to FreeIPA 4.6 which should be smaller release targeted mainly on python3 porting.

This issue is about pytest 3.0, not Python 3.

Per discussion with Petr:

We agreed to keep the milestone change to 4.6. The problem should either be fixed in 4.6 or whenever a new release of pytest is breaking our test suite.

Metadata Update from @cheimes:
- Issue assigned to someone
- Issue set to the milestone: FreeIPA 4.6

PR https://github.com/freeipa/freeipa/pull/828

Metadata Update from @cheimes:
- Issue close_status updated to: None

master:

  • af140b0bc15cf4c27c63cc88bc6eec792f29422a Silence pytest.yield_fixture deprecation warning
  • 090eadbe4e4d0ab9fe387c1966b51cdf28ed9b17 Reimplement yield tests are parametrized tests

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

Metadata