diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2021-09-14 10:09:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-14 10:09:05 +0100 |
commit | c99fc4e53a60084df88ac5c69b3b13bc033677e1 (patch) | |
tree | dec1308bd562dfd578ee29d15d0bb8ea5acb0ac2 /Lib/test/test_dis.py | |
parent | c2f1e953371c25f6c42b599ba3d8797effbb503e (diff) | |
download | cpython-git-c99fc4e53a60084df88ac5c69b3b13bc033677e1.tar.gz |
bpo-45168: change dis output to omit missing values rather than replacing them by their index (GH-28313)
Diffstat (limited to 'Lib/test/test_dis.py')
-rw-r--r-- | Lib/test/test_dis.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/test/test_dis.py b/Lib/test/test_dis.py index a140a89f0e..0899db66d8 100644 --- a/Lib/test/test_dis.py +++ b/Lib/test/test_dis.py @@ -48,12 +48,12 @@ dis_c_instance_method = """\ """ % (_C.__init__.__code__.co_firstlineno + 1,) dis_c_instance_method_bytes = """\ - 0 LOAD_FAST 1 (1) - 2 LOAD_CONST 1 (1) + 0 LOAD_FAST 1 + 2 LOAD_CONST 1 4 COMPARE_OP 2 (==) - 6 LOAD_FAST 0 (0) - 8 STORE_ATTR 0 (0) - 10 LOAD_CONST 0 (0) + 6 LOAD_FAST 0 + 8 STORE_ATTR 0 + 10 LOAD_CONST 0 12 RETURN_VALUE """ @@ -105,11 +105,11 @@ dis_f = """\ dis_f_co_code = """\ - 0 LOAD_GLOBAL 0 (0) - 2 LOAD_FAST 0 (0) + 0 LOAD_GLOBAL 0 + 2 LOAD_FAST 0 4 CALL_FUNCTION 1 6 POP_TOP - 8 LOAD_CONST 1 (1) + 8 LOAD_CONST 1 10 RETURN_VALUE """ |