summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tracemalloc.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-09-17 12:17:29 (GMT)
committerGitHub <noreply@github.com>2018-09-17 12:17:29 (GMT)
commitda8d72c953369b872a12c13f136ada77a786714a (patch)
treebcfb6546be24ecf3efaee838934001fd931fa065 /Lib/test/test_tracemalloc.py
parent5e99b56d6b249995a4fa2bc09c0bb03841f49572 (diff)
downloadcpython-da8d72c953369b872a12c13f136ada77a786714a.zip
cpython-da8d72c953369b872a12c13f136ada77a786714a.tar.gz
cpython-da8d72c953369b872a12c13f136ada77a786714a.tar.bz2
bpo-12458: Fix line numbers for multiline expressions. (GH-8774)
Diffstat (limited to 'Lib/test/test_tracemalloc.py')
-rw-r--r--Lib/test/test_tracemalloc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_tracemalloc.py b/Lib/test/test_tracemalloc.py
index 491cd05..76a6159 100644
--- a/Lib/test/test_tracemalloc.py
+++ b/Lib/test/test_tracemalloc.py
@@ -936,7 +936,7 @@ class TestCAPI(unittest.TestCase):
return None
def track(self, release_gil=False, nframe=1):
- frames = get_frames(nframe, 2)
+ frames = get_frames(nframe, 1)
_testcapi.tracemalloc_track(self.domain, self.ptr, self.size,
release_gil)
return frames