From 6ecaa16cd5492f798d09a8b6e4cea71c486af77c Mon Sep 17 00:00:00 2001 From: rocky Date: Sun, 3 Dec 2017 20:29:55 -0500 Subject: [PATCH] More weirdness testing --- test/bytecode_2.5/03_weird26.pyc | Bin 0 -> 533 bytes test/bytecode_2.6/03_weird26.pyc | Bin 492 -> 533 bytes test/bytecode_2.7/03_weird26.pyc | Bin 0 -> 488 bytes test/simple_source/bug26/03_weird26.py | 2 ++ test/stdlib/runtests.sh | 3 ++- 5 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 test/bytecode_2.5/03_weird26.pyc create mode 100644 test/bytecode_2.7/03_weird26.pyc diff --git a/test/bytecode_2.5/03_weird26.pyc b/test/bytecode_2.5/03_weird26.pyc new file mode 100644 index 0000000000000000000000000000000000000000..19297d87635b2cc743d125d6f3fdef1531c1ef3b GIT binary patch literal 533 zcma)3!Ab&A6g}@bY8oyIF=!XGm!!Pl5TGk-idqz!?BW!2`Amx1)0mG>nF) zP>X6%LN)0=DF-zU7agd@fsG;9&B4pzWmkkke3h3+SmA&JGU{zLdj&*CHpSK7B`r&# z!?sKm(RcUgEhr0UfgE9~2vXUCIlUsRo7e!OGdwG7>?vvyg@wuiN|xTMMT33|HXgW1 z-xZNR?VigLuBc}M^=2l!t-sr3NKXWUc|0@YG+HK8(|BC^t#+e%IbN9{@mlSA{FIhB z)$vVe)^XA;$|oXMLLhQMUVwp~D>QQm2l^^4fcuKZ%&@dSjNEu6m({kVg&$& CgbbPh diff --git a/test/bytecode_2.7/03_weird26.pyc b/test/bytecode_2.7/03_weird26.pyc new file mode 100644 index 0000000000000000000000000000000000000000..39e093f2adf6d774762ab998cbaccae336f5b0a9 GIT binary patch literal 488 zcma)&!AiqG6h-e$Osd7K1Q%{pa1l3ct(TZjv(f8wY3 zN&bNEjTXB!WX{|-Z{E!%-dEWE{J5IN_&{^5+B7elm`-Iu$6QapxS^~HoJ!8MnRXj-NGa~q!hZ%kPMFy z3j$ZJpxs;(8en#gSAm8Cf?|12aa5-s#md=EA|Cs58%IJhbrq}bbDj1F-QMl|Md>Q(4?5+>9MP>|stUC(t5J(b*e-x(JMA-QVI1)vwp>?> pB2^FEwtSXpV=afv7kgiKIsO;H^3NLP%cRcKC?IVZH{#4ck>Bd6PkR6W literal 0 HcmV?d00001 diff --git a/test/simple_source/bug26/03_weird26.py b/test/simple_source/bug26/03_weird26.py index 63e1dcc8..3447f701 100644 --- a/test/simple_source/bug26/03_weird26.py +++ b/test/simple_source/bug26/03_weird26.py @@ -10,3 +10,5 @@ list(x for x in range(10) if x % 2 if x % 3) # but leave dead code or junk around that we have to match on. # Tests "conditional_true" rule (5 if 1 else max(5, 2)) + +0 or max(5, 3) if 0 else 3 diff --git a/test/stdlib/runtests.sh b/test/stdlib/runtests.sh index b0f9fc80..e0d58906 100755 --- a/test/stdlib/runtests.sh +++ b/test/stdlib/runtests.sh @@ -38,6 +38,7 @@ case $PYVERSION in [test_dis.py]=1 # We change line numbers - duh! [test_extcall.py]=1 # TypeError: saboteur() takes no arguments (1 given) [test_format.py]=1 # Control flow? + [test_grammar.py]=1 # Too many stmts. Handle large stmts [test_grp.py]=1 # Long test - might work Control flow? [test_long_future.py]=1 # Control flow? [test_math.py]=1 # Control flow? @@ -76,7 +77,7 @@ case $PYVERSION in [test_descr.py]=1 # syntax error look at [test_dis.py]=1 # We change line numbers - duh! [test_future4.py]=1 # Possible additional rule for future mechanism? - [test_grammar.py]=1 # Long test look at + [test_grammar.py]=1 # Too many stmts. Handle large stmts [test_importlib.py]=1 # Control flow? ) ;;