Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

for - if - for - else combo miscounts branch possibilities #39

Closed
nedbat opened this issue Dec 13, 2009 · 1 comment
Closed

for - if - for - else combo miscounts branch possibilities #39

nedbat opened this issue Dec 13, 2009 · 1 comment
Labels
bug Something isn't working

Comments

@nedbat
Copy link
Owner

nedbat commented Dec 13, 2009

This code has an anomaly:

# In this function, "for e in info" seems to have 2 branches:
def branches_2():
    if x: 
        for e in info: 
            print(1)
    else: 
        print(2)

# In this function, "for e in info" seems to have 3 branches:
def branches_3():
    for y in a: 
        if x:
            for e in info: 
                print(1)
        else: 
            print(2)

@nedbat
Copy link
Owner Author

nedbat commented Dec 20, 2009

Fixed in <<changeset 50fbe533d000 (bb)>>.

@nedbat nedbat closed this as completed Dec 20, 2009
@nedbat nedbat added major bug Something isn't working labels Jun 23, 2018
agronholm added a commit to agronholm/coveragepy that referenced this issue Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant