

def test_refcountdisposable_singlereference():
    d = BooleanDisposable()
    r = RefCountDisposable(r)
    assert (not d.is_disposed)
    r.dispose()
    assert d.is_disposed
    r.dispose()
    assert d.is_disposed

dataset/ETHPy150Open ReactiveX/RxPY/tests/test_disposables/test_disposable.py test_refcountdisposable_singlereference/VarMisuse@19/32 `d`->`r`