-3) #!python def f(a, b): c = (i for i in a) d = (j for j in b) # Line of interest return dict(zip(c, d)) print(f(['a'...">

Generator expression is marked as not executed when it clearly is · Issue #475 · nedbat/coveragepy (original) (raw)

In this code with branch coverage, "Line of interest" is marked as partial (3->-3)

#!python
def f(a, b):
    c = (i for i in a)
    d = (j for j in b)  # Line of interest
    return dict(zip(c, d))

print(f(['a', 'b'], [1, 2]))