Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
Originally reported by rozza (Bitbucket: rozza, GitHub: rozza)
CodeUnit fails with eggs as the files aren't actually available for reading.
The text was updated successfully, but these errors were encountered:
Issue #26 was marked as a duplicate of this issue.
Sorry, something went wrong.
Thanks! This is fixed in <<changeset 92b5372042d2 (bb)>>
Original comment by Vanuan (Bitbucket: Vanuan, GitHub: Vanuan)
Alas, it is not fixed everywhere consistently.
results.py and codeunit.py contain duplicated code.
The bug still exists in results.py:
if source is not None:
Similar bugs in parser.py (lines 27, 337)
should be fixed the same way.
This is due to the fact that the file __init__.py could be empty (its length is zero).
The fix is trivial: Vanuan/coveragepy@f453ced
Vanuan: can you provide some test scenarios?
I'm afraid I need some help here.
The test case should look like that:
where import_egg1.py contains import egg1 and egg1 is an egg module (and contains an empty __init__.py).
My best effort is here: Vanuan/coveragepy@7cba392
I tried to duplicate this using the egg1 egg in the tests directory, with coverage 4.0. There were no problems. Maybe I don't know how to reproduce it. If you can give me manual steps to make it fail, I'll re-open the issue.
Fixed cancel scopes becoming their own parent on asyncio and curio
No branches or pull requests