summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dis.py
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2020-07-30 09:03:00 (GMT)
committerGitHub <noreply@github.com>2020-07-30 09:03:00 (GMT)
commit6e8128f02e1d36e38e5866f9dc36e051caa47bc9 (patch)
tree69cb790e96057a35333a9a2de94934d9ab3aab9d /Lib/test/test_dis.py
parentba18c0b13ba3c08077ea3db6658328523823a33f (diff)
downloadcpython-6e8128f02e1d36e38e5866f9dc36e051caa47bc9.zip
cpython-6e8128f02e1d36e38e5866f9dc36e051caa47bc9.tar.gz
cpython-6e8128f02e1d36e38e5866f9dc36e051caa47bc9.tar.bz2
bpo-41323: Perform 'peephole' optimizations directly on the CFG. (GH-21517)
* Move 'peephole' optimizations into compile.c and perform them directly on the CFG.
Diffstat (limited to 'Lib/test/test_dis.py')
-rw-r--r--Lib/test/test_dis.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/test/test_dis.py b/Lib/test/test_dis.py
index ac5836d..4533a01 100644
--- a/Lib/test/test_dis.py
+++ b/Lib/test/test_dis.py
@@ -360,8 +360,6 @@ dis_tryfinally = """\
16 CALL_FUNCTION 0
18 POP_TOP
20 RERAISE
- 22 LOAD_CONST 0 (None)
- 24 RETURN_VALUE
""" % (_tryfinally.__code__.co_firstlineno + 1,
_tryfinally.__code__.co_firstlineno + 2,
_tryfinally.__code__.co_firstlineno + 4,
@@ -385,8 +383,6 @@ dis_tryfinallyconst = """\
16 CALL_FUNCTION 0
18 POP_TOP
20 RERAISE
- 22 LOAD_CONST 0 (None)
- 24 RETURN_VALUE
""" % (_tryfinallyconst.__code__.co_firstlineno + 1,
_tryfinallyconst.__code__.co_firstlineno + 2,
_tryfinallyconst.__code__.co_firstlineno + 4,