pyo3/examples/decorator/tests/example.py

12 lines
124 B
Python

@Counter
def say_hello():
print("hello")
say_hello()
say_hello()
say_hello()
say_hello()
assert say_hello.count == 4