Skip to content

pytest fails with non-None return #50

@mdpiper

Description

@mdpiper

The latest version of pytest (8.4.0) now automatically fails a test that has a return value (see the changelog and the PR with the change).

From a little grepping, this change only affects one test, test_get_component_name in stage_1/info_test.py.

def test_get_component_name(initialized_bmi):
"""Test component name is a string."""
name = initialized_bmi.get_component_name()
assert isinstance(name, str)
return name

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions