summaryrefslogtreecommitdiff
path: root/Lib/test/test_dis.py
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2021-04-29 13:12:51 +0100
committerGitHub <noreply@github.com>2021-04-29 13:12:51 +0100
commitc76da79b37d2bcbe575cc927ba0a9b7a9ce465db (patch)
treecf5e884131b3f44f038355ff4980cfbb97a6e228 /Lib/test/test_dis.py
parent53dd6c99b39d90935c00bc1558582e494641248e (diff)
downloadcpython-git-c76da79b37d2bcbe575cc927ba0a9b7a9ce465db.tar.gz
bpo-42739: Don't use sentinels to mark end of line table. (GH-25657)
* Add length parameter to PyLineTable_InitAddressRange and doen't use sentinel values at end of table. Makes the line number table more robust. * Update PyCodeAddressRange to match PEP 626.
Diffstat (limited to 'Lib/test/test_dis.py')
-rw-r--r--Lib/test/test_dis.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_dis.py b/Lib/test/test_dis.py
index 8e36ae266b..8d059352bc 100644
--- a/Lib/test/test_dis.py
+++ b/Lib/test/test_dis.py
@@ -172,7 +172,7 @@ def bug42562():
# Set line number for 'pass' to None
-bug42562.__code__ = bug42562.__code__.replace(co_linetable=b'\x04\x80\xff\x80')
+bug42562.__code__ = bug42562.__code__.replace(co_linetable=b'\x04\x80')
dis_bug42562 = """\