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

Reused-uplink breaks stuffs #8

Closed
hmax opened this issue Nov 17, 2014 · 1 comment · Fixed by #9
Closed

Reused-uplink breaks stuffs #8

hmax opened this issue Nov 17, 2014 · 1 comment · Fixed by #9
Assignees
Labels

Comments

@hmax
Copy link

hmax commented Nov 17, 2014

I'll just leave it here:

class L2:
    d = Uplink()


class R2:
    d = Uplink()


class D2:
    l = Reused(L2)
    r = Reused(R2)

L2.d.linksTo(D2, D2.l)
R2.d.linksTo(D2, D2.r)


def test_double_incoming_uplinks():
    d = Builder(D2).build()
    assert d.l.d == d
    assert d.r.d == d


def test_double_incoming_uplinks_left_branch():
    r = Builder(R2).build()
    assert r.d.r.d == r.d
    assert r.d.l.d == r.d


def test_double_incoming_uplinks_right_branch():
    l = Builder(R2).build()
    assert l.d.l.d == l.d
    assert l.d.r.d == l.d
@pupssman pupssman added the bug label Nov 17, 2014
@pupssman pupssman self-assigned this Nov 17, 2014
@pupssman
Copy link
Member

Why dont you say that these fail?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants