-
-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
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? Sign in to your account
Yielded twisted failure marked as missed #440
Comments
Can you provide me with detailed instructions on how to run the test suite? BTW: I used scrapy yesterday, good stuff :) |
Original comment by Jakob de Maeyer (Bitbucket: jdemaeyer, GitHub: jdemaeyer) Hey Ned, thanks for looking into it. I'm afraid I'm not too familiar with the test suite internals. I clone the repository, then run btw I use coverage.py every day, also good stuff :) |
@jdemaeyer The line you're talking about ("testvar = True") isn't in the current version of the repo (commit 57f87b95d4d705f8afdd8fb9f7551033a7d88ee2 (bb)). Did you add it there specifically for investigating this bug? Is there a problem with the code as it exists in the repo? |
Original comment by Jakob de Maeyer (Bitbucket: jdemaeyer, GitHub: jdemaeyer) Hey Ned! Yeah, the |
@jdemaeyer Looks like this is a really simple thing that doesn't involve Twisted at all. I didn't understand your smaller test cases that didn't work. I think this boils down to: yields that are never returned to are marked as not executed:
When run without branch coverage, it's understood better:
|
Fixed in b03f78976a78 (bb) |
Issue #482 was marked as a duplicate of this issue. |
Originally reported by Jakob de Maeyer (Bitbucket: jdemaeyer, GitHub: jdemaeyer)
Hi,
in this except clause (lines 75 through 81), we catch all exceptions, do some cleanup, and then reraise the exception by wrapping it in a
twisted.Failure
. The whole function is wrapped inside twisted'sinlineCallbacks
magic.The coverage report (XML here, run with
timid = True
) shows the variable assignment in line 80 being hit but the subsequent line being missed. An accompanying test passes when line 81 is there and fails when I remove it, so I'm pretty sure it should indeed be hit.I tried to create a minimal working example here but failed, sorry :/
The text was updated successfully, but these errors were encountered: