Commit 989f7643 authored by Denis Bilenko's avatar Denis Bilenko

remove test__lazy_propery.py

parent 7af7984c
from gevent.util import lazy_property
calc = []
class A(object):
@lazy_property
def prop(self):
calc.append(1)
return 1
a = A()
assert a.prop == 1
assert calc == [1], calc
assert a.prop == 1
assert calc == [1], calc
a.__dict__['prop'] = 5
assert a.prop == 5
assert calc == [1], calc
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment