Skip to content

Strange behavior with ProcessPoolExecutor #1038

Open
@0x0L

Description

@0x0L

Hello,

I don't have simple reproducible example but the same tox suite running pytest --cov --cov-append reports slightly differently in py37 and py38.

I set up my .coveragerc as follows

[path]
source =
    src
    */site-packages
    *\site-packages

[run]
branch = true
parallel = true
source =
    my_package
    tests

Running in py37 correctly report the code under src/my_package and tests
In py38, i see additional lines .tox/py38/.../site-packages/my_package/*.py. The only hits for those files are actually callback code called in a ProcessPoolExecutor

I tried setting concurrency = multiprocessing but it didn't help.

As a workaround, I'm omitting these files when reporting but it's still puzzling as it only happens with 3.8 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions