diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-02-05 00:26:21 +0000 |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-02-05 00:26:21 +0000 |
commit | 99af7dbc07a8c7e52c081d2b9398ce61cf40215a (patch) | |
tree | 62182da9e7991631ecb892e54c079ff21d9429af /Lib/test/test_trace.py | |
parent | 6fd03bb6070586a3b069c90cf3892ba7573d6bf5 (diff) | |
download | cpython-git-99af7dbc07a8c7e52c081d2b9398ce61cf40215a.tar.gz |
Change r60575 broke test_compile:
there is no need to emit co_lnotab item when both offsets are zeros.
Diffstat (limited to 'Lib/test/test_trace.py')
-rw-r--r-- | Lib/test/test_trace.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/test/test_trace.py b/Lib/test/test_trace.py index 7f7db334ed..6ad38d103a 100644 --- a/Lib/test/test_trace.py +++ b/Lib/test/test_trace.py @@ -366,6 +366,15 @@ class TraceTestCase(unittest.TestCase): (3, 'line'), (3, 'return')]) + def test_16_blank_lines(self): + exec("def f():\n" + "\n" * 256 + " pass") + self.run_and_compare( + f, + [(0, 'call'), + (257, 'line'), + (257, 'return')]) + + class RaisingTraceFuncTestCase(unittest.TestCase): def trace(self, frame, event, arg): """A trace function that raises an exception in response to a |