8000 Pytest 'yield tests are deprecated, and scheduled to be removed in pytest 4.0' · Issue #34 · wolever/parameterized · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Pytest 'yield tests are deprecated, and scheduled to be removed in pytest 4.0' #34
Open
@adamchainz

Description

@adamchainz

This test leads to a pytest-warning on Pytest 3.0+:

from nose_parameterized import parameterized

@parameterized([
    ('foo',)
])
def test_foo(foo):
    pass

Like:

============================================================== pytest-warning summary ==============================================================
WC1 /path/to/test_foo.py yield tests are deprecated, and scheduled to be removed in pytest 4.0
=================================================== 1 passed, 1 pytest-warnings in 0.10 seconds ====================================================

Maybe the strategy for use within pytest should be reworked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0