diff options
author | Mark Shannon <mark@hotpy.org> | 2021-04-29 13:12:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-29 13:12:51 +0100 |
commit | c76da79b37d2bcbe575cc927ba0a9b7a9ce465db (patch) | |
tree | cf5e884131b3f44f038355ff4980cfbb97a6e228 /Lib/test/test_dis.py | |
parent | 53dd6c99b39d90935c00bc1558582e494641248e (diff) | |
download | cpython-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.py | 2 |
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 = """\ |