KEMBAR78
Fix crashes in coverage reports by msullivan · Pull Request #4978 · python/mypy · GitHub
Skip to content

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