New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 672641 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Jan 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Python unittest code coverage is confused

Project Member Reported by wrengr@chromium.org, Dec 8 2016

Issue description

In CL <https://codereview.chromium.org/2562623004/> we define the magic __bool__ method for CallStack (in stacktrace.py). The testCallStackBool method calls this function; however, the code coverage tool doesn't recognize that fact.
 
Owner: kateso...@chromium.org
This is because for python 2.x we should use __nonzero__ instead.

http://stackoverflow.com/questions/2233786/overriding-bool-for-custom-class

Will fix this in one of my upcoming cl.
Interesting. Good catch!
Status: WontFix (was: Available)

Sign in to add a comment