Thomas Grainger
Thomas Grainger
You need to use ```python async with async_client_factory(1) as async_client: ... ```
The problem is that they are listed as our source code, for example by moving the "source" config from addopts to .coveragerc our coverage percent grows from 76 to 79%
Note that the spurious files are in /opt/ not /src/
Generally I expect `--cov=/src/redacted` to behave the same as `.coveragerc` `[run]\n source=/src/redacted/`
I do pass cov-config explicitly
> ..also I would try it without pytest-xdist to rule that out. running a build without xdist. I highly suspect it's xdist causing the issue
ok I ran a build without xdist. With `pytest --cov=/src/redacted/` and the config: ``` [run] branch = True concurrency = multiprocessing # pytest-twisted runs a twisted reactor in a greenlet...
> @graingert > Did it happen there then also? Yes it did, I'm sorry I forgot to mention that! > I still suggest making coverage.py dump debug information (to stderr...
> billiard is a fork of the Python 2.7 multiprocessing package. The multiprocessing package itself is a renamed and updated version of R Oudkerk’s pyprocessing package. This standalone variant draws...
as a side note, running ```python def _initializer(): from pytest_cov.embed import cleanup_on_sigterm cleanup_on_sigterm def _smoke_test_in_process(): assert str(3) == "3" def test_ham(): import billiard as multiprocessing with multiprocessing.Pool(processes=1, initializer=_initializer) as pool:...