mirror of
https://github.com/cool-RR/PySnooper.git
synced 2026-01-23 10:15:11 +00:00
ADD test_nesting.py
This commit is contained in:
parent
ca5807f40d
commit
162effc92c
1 changed files with 14 additions and 0 deletions
14
tests/test_nesting.py
Normal file
14
tests/test_nesting.py
Normal 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue