This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author scoder
Recipients aldwinaldwin, miss-islington, ned.deily, nedbat, pablogsal, scoder, serhiy.storchaka, xtreak
Date 2019-07-05.20:23:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1562358223.8.0.515448120609.issue37500@roundup.psfhosted.org>
In-reply-to
Content
> it should not be rely upon

IMHO, the correct behaviour under coverage analysis is to keep the code and not discard it. After all, it is code that exists, and that is not being executed, so it should count as uncovered code. The fact that some Python versions can detect at compile time that it will never be executed, and thus discard it ahead of time, should not have an impact on the coverage analysis.
History
Date User Action Args
2019-07-05 20:23:43scodersetrecipients: + scoder, nedbat, ned.deily, serhiy.storchaka, pablogsal, miss-islington, xtreak, aldwinaldwin
2019-07-05 20:23:43scodersetmessageid: <1562358223.8.0.515448120609.issue37500@roundup.psfhosted.org>
2019-07-05 20:23:43scoderlinkissue37500 messages
2019-07-05 20:23:43scodercreate