diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2011-04-27 09:42:41 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2011-04-27 09:42:41 -0400 |
commit | a243a6a2b34eb9ef5cba3346796160e06ba77930 (patch) | |
tree | e9c0f8a9dab30b5f15ebaa408a90ed523b4a9f18 /test/test_oddball.py | |
parent | c826639c8ba8e9076ace7d030dc5a9f6f899c9ee (diff) | |
download | python-coveragepy-git-a243a6a2b34eb9ef5cba3346796160e06ba77930.tar.gz |
C trace function now roundtrips properly. Fixes #123 and #125.
--HG--
branch : bug_123
Diffstat (limited to 'test/test_oddball.py')
-rw-r--r-- | test/test_oddball.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/test_oddball.py b/test/test_oddball.py index 9b65a986..859648fa 100644 --- a/test/test_oddball.py +++ b/test/test_oddball.py @@ -365,3 +365,20 @@ if hasattr(sys, 'gettrace'): a = bar(8) ''', [1,2,3,4,5,6,7,8], "") + + def test_multi_layers(self): + self.check_coverage('''\ + import sys + def level1(): + a = 3 + level2() + b = 5 + def level2(): + c = 7 + sys.settrace(sys.gettrace()) + d = 9 + e = 10 + level1() + f = 12 + ''', + [1,2,3,4,5,6,7,8,9,10,11,12], "") |