Skip to content

Commit 0289249

Browse files
committed
add test_frame_tests.test_nested_lineno
1 parent 3cf2165 commit 0289249

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_frame_tests.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ def test_lineno():
4747
assert sys._getframe(0).f_lineno == 47
4848

4949

50+
# IMPORTANT: DO NOT MOVE!
51+
def test_nested_lineno():
52+
def test_nested():
53+
return sys._getframe(0)
54+
f = test_nested()
55+
assert f.f_lineno == 53
56+
57+
5058
def test_read_and_write_locals():
5159
a = 1
5260
b = ''

0 commit comments

Comments
 (0)