ADD test_nesting.py

This commit is contained in:
CheonKiO 2020-12-05 16:37:25 +09:00
parent ca5807f40d
commit 162effc92c

14
tests/test_nesting.py Normal file
View file

@ -0,0 +1,14 @@
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()