Skip to content

FAQ: Why do the bodies of functions show as executed, but the def lines do not? - Solution: spawn a new process #1444

Open
@GadiZimerman

Description

@GadiZimerman

from multiprocessing import Process, set_start_method

set_start_method("spawn")
process_cov = Process(target=calc_report_coverage, args=(...))
process_cov.start()
process_cov.join()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions