Skip to content

Commit da4109f

Browse files
committed
Add a test for __round__.
1 parent 4025696 commit da4109f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_lazy_object_proxy.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ def lazy_object_proxy(request, lop_subclass):
9898
return lop_subclass
9999

100100

101+
def test_round(lazy_object_proxy):
102+
proxy = lazy_object_proxy.Proxy(lambda: 1.2)
103+
assert round(proxy) == 1
104+
105+
101106
def test_attributes(lazy_object_proxy):
102107
def function1(*args, **kwargs):
103108
return args, kwargs

0 commit comments

Comments
 (0)