[issue37500] 3.8.0b2 no longer optimizes away "if 0:" ?

Ned Batchelder report at bugs.python.org
Fri Jul 5 13:26:38 EDT 2019


Ned Batchelder <ned at nedbatchelder.com> added the comment:

The real-word implications from my world are this: if your code has "if 0:" clauses in it, and you measure its coverage, then because the lines have not been optimized away, coverage.py will think the lines are a possible execution path, and will be considered a miss because they are not executed.  This will reduce your coverage percentage. 

I can't estimate how many people this will affect.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37500>
_______________________________________


More information about the Python-bugs-list mailing list