Skip to content

[BUG] Context already been set #466

@apomalyn

Description

@apomalyn

Description of the issue

When running mutmut3 I always end up with the same error during the stats step:

RuntimeError: context has already been set

During the stats step on the first

from mutmut.__main__ import record_trampoline_hit

mutmut.__main__ is loaded and so set_start_method('fork') is executed a second time.

Whatever the project I use, as long as I use mutmut >3, I always get that error. I've tried even with a dummy project (CRUD of FastAPI), and always end up with the same issue. I'm out of ideas of what to do, so I'm asking here if anyone has an idea of what is happening here.

Specs

OS: MacOS 15.7 (M4 pro)
Python: 3.13, 3.14
mutmut: 3.4.0
pytest: 9.0.2
Project layout: flat

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