From e568d68baab2d0c8238dd658cc7461a52ce15da5 Mon Sep 17 00:00:00 2001 From: rocky Date: Wed, 28 Mar 2018 07:52:04 -0400 Subject: [PATCH] Reinstate a test --- test/bytecode_2.7/15_assert.pyc | Bin 543 -> 556 bytes test/bytecode_2.7_run/04_assert_continue.pyc | Bin 0 -> 471 bytes .../bug27+/05_not_unconditional.py | 2 +- test/simple_source/stmts/15_assert.py | 10 ---------- 4 files changed, 1 insertion(+), 11 deletions(-) create mode 100644 test/bytecode_2.7_run/04_assert_continue.pyc diff --git a/test/bytecode_2.7/15_assert.pyc b/test/bytecode_2.7/15_assert.pyc index ebbc8bb1102663b4a5a145bc85a073c0a14b0894..c14a51669b11829c88772d3a5780804676fd5ddb 100644 GIT binary patch delta 258 zcmbQwvW7*P`7jkrhJ= z4?_tPLkcrPGb2M2BSQ)kLlhfBp*%x4P%edqp#`Xvogo#7I6x{GQ&<^-HQ0eBW-h>44n GhZz7FPAA_0 delta 212 zcmZ3(GM`17`7XsyoS6opSRZPkE3_!0(0tKdcuQLNnvT{H`!n^2Mgho(uKnLrB_L47M9%NOw6 zLFnFu`_0XrIcHAP&wkQ>|DF~2dwN{&SniZ4fiGYNX!a4x7&^kIl4cRZoxsQV;9Ma~ zMOY|8DrP;f+!L`HVH5P!*s+M;fDQX=QA*F<9u_>V;31B$3N_~utP*DYerA{~?bB~! z?PvMIYt--amicYDb%6Wdmo literal 0 HcmV?d00001 diff --git a/test/simple_source/bug27+/05_not_unconditional.py b/test/simple_source/bug27+/05_not_unconditional.py index 0731ad6f..cf35ae7a 100644 --- a/test/simple_source/bug27+/05_not_unconditional.py +++ b/test/simple_source/bug27+/05_not_unconditional.py @@ -1,5 +1,5 @@ # From 2.7 test_itertools.py -# Bug was in 2.7 decompiling like the commented out +# Bug was in 2.7 decompiling the target assignment # code below from itertools import izip_longest for args in [ diff --git a/test/simple_source/stmts/15_assert.py b/test/simple_source/stmts/15_assert.py index 53aefb0c..088e711e 100644 --- a/test/simple_source/stmts/15_assert.py +++ b/test/simple_source/stmts/15_assert.py @@ -1,7 +1,5 @@ # RUNNABLE! -# But if it miscompiles one of the tests may loop forever - # Tests: # 2.7: # assert ::= assert_expr jmp_true LOAD_ASSERT RAISE_VARARGS_1 @@ -35,11 +33,3 @@ def getpreferredencoding(do_setlocale=True): assert not do_setlocale getpreferredencoding(False) - -# From python 3.3 idlelib/PyParse.py -def _study1(i): - while i: - assert i - continue - -_study1(False)