From aa207a3c7775d06e04cd96bf64745a100d244bbb Mon Sep 17 00:00:00 2001 From: rocky Date: Mon, 20 Feb 2017 09:15:39 -0500 Subject: [PATCH] Add test for last while1 bug fix --- test/bytecode_3.4/02_while1.pyc | Bin 0 -> 425 bytes test/simple_source/bug33/02_while1.py | 14 ++++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 test/bytecode_3.4/02_while1.pyc create mode 100644 test/simple_source/bug33/02_while1.py diff --git a/test/bytecode_3.4/02_while1.pyc b/test/bytecode_3.4/02_while1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..efd9a17e3aafe2f96dea1ba5667a2e61eab5a392 GIT binary patch literal 425 zcmYjMu}%U(6r8<1Pl6aJj0uT_iPgnKR9a$4tZZm(3^5_c-GV0voV!6Kfl7ZyKWQzk zuCbTO+0%l(ee>q+yv%#|UE8gG{(RiV0{Ftl@yI(2Qzs<60&hT%#KTP}U4MCeqGVh# z%!=^xEOW}GOiNx50k!9^Wu21kNF{RZu?mVn`sd|`ou#_;@|0-XWz&Lu2dySvgjVUNB5mmY8?wDtp&QCY|J&>YLeI$ErD)k6Nwf*+u{PKF!qmX}+*~T1Cku xN;5hQ`RK-(0|JB;fjDH;_&MD7>O$A3bi=<~&e(t*YPQmz%#wMgE=wn8^b0_@QQ-gp literal 0 HcmV?d00001 diff --git a/test/simple_source/bug33/02_while1.py b/test/simple_source/bug33/02_while1.py new file mode 100644 index 00000000..c672bdd0 --- /dev/null +++ b/test/simple_source/bug33/02_while1.py @@ -0,0 +1,14 @@ +# From Python 3.4 mailcap +def readmailcapfile(caps): + while 1: + line = 'abc' + if line[0] == '#' or line == '': + continue + key, fields = (1,2) + if not (key and fields): + continue + if key in caps: + caps[key].append(fields) + else: + caps[key] = [fields] + return caps