Skip to content

Fix crashes in coverage reports #4978

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

Merged
merged 1 commit into from
Apr 26, 2018
Merged

Fix crashes in coverage reports #4978

merged 1 commit into from
Apr 26, 2018

Conversation

msullivan
Copy link
Collaborator

There are two parts to this:

  1. Look harder for the start of a function, since decorators can make
    it tricky to find.
  2. Be more defensive about handling dodgy line number info.
    Our line numbers aren't reliable enough to be crashing the
    reporter over. This fixes a crash related to attrs.

Fixes #4563

There are two parts to this:
 1. Look harder for the start of a function, since decorators can make
    it tricky to find.
 2. Be more defensive about handling dodgy line number info.
    Our line numbers aren't reliable enough to be crashing the
    reporter over. This fixes a crash related to attrs.

Fixes #4563
@msullivan msullivan requested a review from JukkaL April 26, 2018 18:18
Copy link
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM -- feel free to merge once the builds have passed.

@JukkaL JukkaL merged commit 121e08e into master Apr 26, 2018
@msullivan msullivan deleted the linecount-fix branch April 27, 2018 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash with --linecoverage-report on comment after decorator use
2 participants