Commit 271fdd5e authored by Denis Bilenko's avatar Denis Bilenko

remove test__lazy_propery.py

--HG--
extra : transplant_source : %01f%28%AF%5B%98H%C1%7D%3FA%EC%CB%C9%CCO%A7%8EKC
parent 1929deda
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