summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_trace.py
diff options
context:
space:
mode:
authorCarl Friedrich Bolz-Tereick <cfbolz@gmx.de>2021-12-10 23:45:02 (GMT)
committerGitHub <noreply@github.com>2021-12-10 23:45:02 (GMT)
commitb593bdc7803cc75461f6f8888ad03cb7d8dfc416 (patch)
treee75a6934c855caf2652b9e1e0c9471f6174de861 /Lib/test/test_trace.py
parent28179aac796ed1debdce336c4b8ca18e8475d40d (diff)
downloadcpython-b593bdc7803cc75461f6f8888ad03cb7d8dfc416.zip
cpython-b593bdc7803cc75461f6f8888ad03cb7d8dfc416.tar.gz
cpython-b593bdc7803cc75461f6f8888ad03cb7d8dfc416.tar.bz2
bpo-37971: fix the position of decorator application (GH-30027)
The line numbers of actually calling the decorator functions of functions and classes was wrong (as opposed to loading them, were they have been correct previously too). Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Lib/test/test_trace.py')
-rw-r--r--Lib/test/test_trace.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_trace.py b/Lib/test/test_trace.py
index d63c177..5f71211 100644
--- a/Lib/test/test_trace.py
+++ b/Lib/test/test_trace.py
@@ -205,9 +205,9 @@ class TestLineCounts(unittest.TestCase):
(self.my_py_filename, firstlineno + 4): 1,
(self.my_py_filename, firstlineno + 5): 1,
(self.my_py_filename, firstlineno + 6): 1,
- (self.my_py_filename, firstlineno + 7): 1,
- (self.my_py_filename, firstlineno + 8): 1,
- (self.my_py_filename, firstlineno + 9): 1,
+ (self.my_py_filename, firstlineno + 7): 2,
+ (self.my_py_filename, firstlineno + 8): 2,
+ (self.my_py_filename, firstlineno + 9): 2,
(self.my_py_filename, firstlineno + 10): 1,
(self.my_py_filename, firstlineno + 11): 1,
}