From 162effc92c14f4e68c82af204c2e6dc8489da438 Mon Sep 17 00:00:00 2001 From: CheonKiO Date: Sat, 5 Dec 2020 16:37:25 +0900 Subject: [PATCH] ADD test_nesting.py --- tests/test_nesting.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/test_nesting.py 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()