Results 963 comments of Ned Batchelder

This looks like a problem where line numbers from one frame are misattributed to another frame. I'm not going to fix it by checking the length of the list, because...

I'd like to handle this by reading .editorconfig files, but that will require some refactoring, and using an optional third-party library.

I would rather not invent a coverage.py-only setting for this. editorconfig files are good, and more people should use them.

> What do you mean by "coverage.py-only"? I meant that a setting like `[tool.coverage.html] tab_size=2` would only be read by coverage.py. It would be duplicating information that's already in the...

I think this is a CPython bug. I've written a report here: https://github.com/python/cpython/issues/93061

@ben-spiller Can you re-test with this fix for #1310 ? ``` pip install git+https://github.com/nedbat/coveragepy.git@803a5494ef23#egg=coverage ```

When I try cloning into "cov py", I get 82 failed tests and 10 errored tests! Is that what you saw? This is with Python 3.7 on a Mac: ```...

I can't even run coverage from the tox directory: ``` $ .tox/py37/bin/coverage bash: .tox/py37/bin/coverage: "/private/tmp/my: bad interpreter: No such file or directory $ head -3 .tox/py37/bin/coverage #!"/private/tmp/my dir/coveragepy/.tox/py37/bin/python" # EASY-INSTALL-ENTRY-SCRIPT:...

If it only happens in GitHub Actions, I'm not sure how to debug it... Any ideas?

Thanks for the Docker reproduction. It seems to fail for me at least half the time, so it's a good demonstration of the problem. I think this is a straightforward...