summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_lltrace.py
diff options
context:
space:
mode:
authorBrandt Bucher <brandtbucher@microsoft.com>2022-11-02 17:42:57 (GMT)
committerGitHub <noreply@github.com>2022-11-02 17:42:57 (GMT)
commit276d77724f2373cc03838448a3e62977aa28bf0d (patch)
treeaeb2f83a896f02a3f38ace9d6ecb65b9620be8e3 /Lib/test/test_lltrace.py
parent18fc232e07c14536d99f07821e338ebddfd8cb63 (diff)
downloadcpython-276d77724f2373cc03838448a3e62977aa28bf0d.zip
cpython-276d77724f2373cc03838448a3e62977aa28bf0d.tar.gz
cpython-276d77724f2373cc03838448a3e62977aa28bf0d.tar.bz2
GH-98686: Quicken everything (GH-98687)
Diffstat (limited to 'Lib/test/test_lltrace.py')
-rw-r--r--Lib/test/test_lltrace.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_lltrace.py b/Lib/test/test_lltrace.py
index 7cf8984..747666e 100644
--- a/Lib/test/test_lltrace.py
+++ b/Lib/test/test_lltrace.py
@@ -8,7 +8,7 @@ from test.support.script_helper import assert_python_ok
def example():
x = []
- for i in range(1):
+ for i in range(0):
x.append(i)
x = "this is"
y = "an example"
@@ -75,7 +75,7 @@ class TestLLTrace(unittest.TestCase):
self.assertIn('this is an example', stdout)
# check that offsets match the output of dis.dis()
- instr_map = {i.offset: i for i in dis.get_instructions(example)}
+ instr_map = {i.offset: i for i in dis.get_instructions(example, adaptive=True)}
for line in stdout.splitlines():
offset, colon, opname_oparg = line.partition(":")
if not colon: