Source

pycomplexity / tests / manual / test_update_function.py

Full commit
1
2
3
4
5
6
7
8
9
def foo():
    x if x else x if x else x if x else x if x else x if x else x if x else x
    # Delete this line, then save. The function should go from yellow to
    # green. Then undo and save. The *whole thing* should go back to yellow.
    x if x else x
    pass
    pass
    pass