PySnooper/tests/test_nesting.py
2020-12-05 16:37:25 +09:00

14 lines
219 B
Python

import time
import pysnooper
snoop = pysnooper.snoop()
def test():
with snoop:
a = 10
with snoop:
time.sleep(1.0)
a = 20
time.sleep(1.0)
test()