Eg: a = 1 if b == c else 2 is not registering any missing branches.
a = 1 if b == c else 2
Ah dooh! I forgot to log in
Coverage works with the information from sys.settrace, which is line-based. It has no way to get information within a line.
Long ago, I experimented with a way to get intra-line information, but it is just a wild hack, not something that can be used for real yet: http://nedbatchelder.com/blog/200804/wicked_hack_python_bytecode_tracing.html
This is another flavor of #292.
Duplicate of #292.