-
-
Notifications
You must be signed in to change notification settings - Fork 464
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Originally reported by Antony Lee (Bitbucket: anntzer, GitHub: anntzer)
coverage 4.1, python 3.5.2, arch linux
test.py
cond = True
if cond:
x = 1
else:
x = 2
x = 1 if cond else 2
x = cond and 1 or 2
Getting branch coverage for this file shows partial coverage of the first if cond:, but not of the ternary (inline) if cond, or of the short-circuiting binary operators.
cerealito, senyai, rijenkii, azmeuk, michaelurban and 4 moreselevit, earonesty, staadecker, cerealito, michaelurban and 1 more
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request