Skip to content

Module gets imported (hence executed) twice #357

Open
@smarie

Description

@smarie

If a test file contains both an absolute import and a relative import in parametrize_with_cases

"""This is module foo.test_bar"""
from foo.bar_data import Var

@parametrize_with_cases("a", cases=".bar_data ")
def test_bar(a):
    pass

Then module foo.bar_data is imported twice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions