summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMilan Rossa <rossa.milan@gmail.com>2019-08-19 14:16:33 +0200
committerDamien George <damien.p.george@gmail.com>2019-08-19 23:50:30 +1000
commitae6fe8b43c08abe215dde355e04e561ad2dd1808 (patch)
tree77ed190558c11f3747cd4a1260a26a2f449d8b7b /tests
parent7d851a27f146188752e89bb026021fb8d3985395 (diff)
py/compile: Improve the line numbering precision for comprehensions.
The line number for comprehensions is now always reported as the correct global location in the script, instead of just "line 1".
Diffstat (limited to 'tests')
-rw-r--r--tests/cmdline/cmd_showbc.py.exp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/cmdline/cmd_showbc.py.exp b/tests/cmdline/cmd_showbc.py.exp
index 8d36b89df..8d5d2ffe3 100644
--- a/tests/cmdline/cmd_showbc.py.exp
+++ b/tests/cmdline/cmd_showbc.py.exp
@@ -449,6 +449,7 @@ arg names: * * *
(N_STATE 9)
(N_EXC_STACK 0)
bc=-\\d\+ line=1
+ bc=0 line=59
00 LOAD_NULL
01 LOAD_FAST 2
02 LOAD_NULL
@@ -471,6 +472,7 @@ arg names: * * *
(N_STATE 10)
(N_EXC_STACK 0)
bc=-\\d\+ line=1
+ bc=0 line=60
00 BUILD_LIST 0
02 LOAD_FAST 2
03 GET_ITER_STACK