diff --git a/tests/test_nesting.py b/tests/test_nesting.py new file mode 100644 index 0000000..cc7dbcc --- /dev/null +++ b/tests/test_nesting.py @@ -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()