diff --git a/test/Makefile b/test/Makefile index f948cb03..e5111541 100644 --- a/test/Makefile +++ b/test/Makefile @@ -53,8 +53,8 @@ check-3.3: check-bytecode #: Run working tests from Python 3.4 check-3.4: check-bytecode check-3.4-ok check-2.7-ok - $(PYTHON) test_pythonlib.py --bytecode-3.4 --weak-verify $(COMPILE) $(PYTHON) test_pythonlib.py --bytecode-3.4-run --verify-run + $(PYTHON) test_pythonlib.py --bytecode-3.4 --weak-verify $(COMPILE) #: Run working tests from Python 3.5 check-3.5: check-bytecode diff --git a/test/bytecode_3.3/10_mixed_boolean.pyc b/test/bytecode_3.3/10_mixed_boolean.pyc deleted file mode 100644 index ecd44155..00000000 Binary files a/test/bytecode_3.3/10_mixed_boolean.pyc and /dev/null differ diff --git a/test/bytecode_3.3_run/10_mixed_boolean.pyc b/test/bytecode_3.3_run/10_mixed_boolean.pyc new file mode 100644 index 00000000..ba4fdeea Binary files /dev/null and b/test/bytecode_3.3_run/10_mixed_boolean.pyc differ diff --git a/test/bytecode_3.4/10_mixed_boolean.pyc b/test/bytecode_3.4/10_mixed_boolean.pyc deleted file mode 100644 index ca6b6d6b..00000000 Binary files a/test/bytecode_3.4/10_mixed_boolean.pyc and /dev/null differ diff --git a/test/bytecode_3.4_run/10_mixed_boolean.pyc b/test/bytecode_3.4_run/10_mixed_boolean.pyc new file mode 100644 index 00000000..0bf0fbfd Binary files /dev/null and b/test/bytecode_3.4_run/10_mixed_boolean.pyc differ diff --git a/test/bytecode_3.5/10_mixed_boolean.pyc b/test/bytecode_3.5/10_mixed_boolean.pyc deleted file mode 100644 index d8be2198..00000000 Binary files a/test/bytecode_3.5/10_mixed_boolean.pyc and /dev/null differ diff --git a/test/bytecode_3.5_run/10_mixed_boolean.pyc b/test/bytecode_3.5_run/10_mixed_boolean.pyc new file mode 100644 index 00000000..76f64298 Binary files /dev/null and b/test/bytecode_3.5_run/10_mixed_boolean.pyc differ diff --git a/test/simple_source/bug36/00_if_elif.py b/test/simple_source/bug36/00_if_elif.py index 0867a01f..747ec4bc 100644 --- a/test/simple_source/bug36/00_if_elif.py +++ b/test/simple_source/bug36/00_if_elif.py @@ -1,3 +1,4 @@ +# Self-checking test. # Python 3 bug in not detecting the end bounds of if elif. def testit(b): if b == 1: diff --git a/test/simple_source/bug36/01_fstring.py b/test/simple_source/bug36/01_fstring.py index 26bc3904..c03aaa79 100644 --- a/test/simple_source/bug36/01_fstring.py +++ b/test/simple_source/bug36/01_fstring.py @@ -1,4 +1,5 @@ -# Self-checking 3.6+ string interpolation tests +# Self-checking test. +# String interpolation tests var1 = 'x' var2 = 'y' diff --git a/test/simple_source/looping/10_for.py b/test/simple_source/looping/10_for.py index 3a37c4cf..5de22cab 100644 --- a/test/simple_source/looping/10_for.py +++ b/test/simple_source/looping/10_for.py @@ -1,6 +1,10 @@ +# Self-checking test. # Tests: -# forstmt ::= SETUP_LOOP expr _for store -# for_block POP_BLOCK COME_FROM +# for ::= SETUP_LOOP expr for_iter store +# for_block POP_BLOCK COME_FROM +# In 3.8+ +# for ::= expr for_iter store +# for_block POP_BLOCK COME_FROM c = 0 for a in [1]: diff --git a/test/simple_source/operation_logic/10_mixed_boolean.py b/test/simple_source/operation_logic/10_mixed_boolean.py index d0851a63..aafd2c80 100644 --- a/test/simple_source/operation_logic/10_mixed_boolean.py +++ b/test/simple_source/operation_logic/10_mixed_boolean.py @@ -1,12 +1,24 @@ +# Self-checking test. b = True +assert b, 'b = True' c = False +assert not c, 'c = False' d = True a = b and c or d +assert a, 'b and c or d' a = (b or c) and d +assert a, '(b or c) and d' a = b or c or d +assert a, 'b or c or d' a = b and c and d +assert not a, 'b and c and d' a = b or c and d +assert a a = b and (c or d) +assert a a = b and c or d +assert a a = (b or c and d) and b +assert a a = (b or c and d or a) and b +assert a