diff options
| author | Ćukasz Langa <lukasz@langa.pl> | 2021-09-08 18:25:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-08 18:25:09 +0200 |
| commit | d41abe8970453716dbc6a3a898ac8fb01cbf6c6f (patch) | |
| tree | 3277652b2b3ae9ab7a8046dc9c25b17a2eadcabe /Lib/test/test_dis.py | |
| parent | 7538fe34d730fe08cbbecc17606bc0f5f69ff416 (diff) | |
| download | cpython-git-d41abe8970453716dbc6a3a898ac8fb01cbf6c6f.tar.gz | |
[3.10] bpo-45056: Remove trailing unused constants from co_consts (GH-28109) (GH-28125)
(cherry picked from commit 55c4a92fc1abfe388335071f1d64b3addfa5793f)
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Diffstat (limited to 'Lib/test/test_dis.py')
| -rw-r--r-- | Lib/test/test_dis.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/test/test_dis.py b/Lib/test/test_dis.py index d03aa75a6a..edda967ce1 100644 --- a/Lib/test/test_dis.py +++ b/Lib/test/test_dis.py @@ -689,10 +689,7 @@ class DisWithFileTests(DisTests): if sys.flags.optimize: code_info_consts = "0: None" else: - code_info_consts = ( - """0: 'Formatted details of methods, functions, or code.' - 1: None""" -) + code_info_consts = "0: 'Formatted details of methods, functions, or code.'" code_info_code_info = f"""\ Name: code_info @@ -816,7 +813,6 @@ Flags: NOFREE Constants: 0: 0 1: 1 - 2: None Names: 0: x""" |
