#6591 pytest 3.0: yield tests are deprecated
Closed: fixed 6 years ago Opened 7 years ago 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

7 years ago

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

6 years ago

master:

  • af140b0 Silence pytest.yield_fixture deprecation warning
  • 090eadb Reimplement yield tests are parametrized tests

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

6 years ago

Login to comment on this ticket.

Metadata