diff --git a/test/Makefile b/test/Makefile index 8328d5fb..f5d663cf 100644 --- a/test/Makefile +++ b/test/Makefile @@ -44,7 +44,7 @@ check-bytecode-2: #: Check deparsing bytecode only check-bytecode: $(PYTHON) test_pythonlib.py --bytecode-2.5 --bytecode-2.6 --bytecode-2.7 \ - --bytecode-3.2 --bytecode-3.3 --bytecode-3.4 + --bytecode-3.2 --bytecode-3.3 --bytecode-3.4 --bytecode-3.5 #: Check deparsing Python 2.5 check-bytecode-2.5: @@ -70,6 +70,10 @@ check-bytecode-3.3: check-bytecode-3.4: $(PYTHON) test_pythonlib.py --bytecode-3.4 +#: Check deparsing Python 3.5 +check-bytecode-3.5: + $(PYTHON) test_pythonlib.py --bytecode-3.5 + #: short tests for bytecodes only for this version of Python check-native-short: $(PYTHON) test_pythonlib.py --bytecode-$(PYTHON_VERSION) --verify $(COMPILE) diff --git a/test/bytecode_3.5/00_assign.pyc b/test/bytecode_3.5/00_assign.pyc new file mode 100644 index 00000000..38ad5686 Binary files /dev/null and b/test/bytecode_3.5/00_assign.pyc differ diff --git a/test/bytecode_3.5/00_import.pyc b/test/bytecode_3.5/00_import.pyc new file mode 100644 index 00000000..27c6c811 Binary files /dev/null and b/test/bytecode_3.5/00_import.pyc differ diff --git a/test/bytecode_3.5/00_pass.pyc b/test/bytecode_3.5/00_pass.pyc new file mode 100644 index 00000000..b28fc227 Binary files /dev/null and b/test/bytecode_3.5/00_pass.pyc differ diff --git a/test/bytecode_3.5/01_boolean.pyc b/test/bytecode_3.5/01_boolean.pyc new file mode 100644 index 00000000..23416b13 Binary files /dev/null and b/test/bytecode_3.5/01_boolean.pyc differ diff --git a/test/bytecode_3.5/01_class.pyc b/test/bytecode_3.5/01_class.pyc new file mode 100644 index 00000000..b3625adf Binary files /dev/null and b/test/bytecode_3.5/01_class.pyc differ diff --git a/test/bytecode_3.5/01_fns.pyc b/test/bytecode_3.5/01_fns.pyc new file mode 100644 index 00000000..5fb4d37d Binary files /dev/null and b/test/bytecode_3.5/01_fns.pyc differ diff --git a/test/bytecode_3.5/01_list_comprehension.pyc b/test/bytecode_3.5/01_list_comprehension.pyc new file mode 100644 index 00000000..3c3bac36 Binary files /dev/null and b/test/bytecode_3.5/01_list_comprehension.pyc differ diff --git a/test/bytecode_3.5/01_positional.pyc b/test/bytecode_3.5/01_positional.pyc new file mode 100644 index 00000000..5e36e363 Binary files /dev/null and b/test/bytecode_3.5/01_positional.pyc differ diff --git a/test/bytecode_3.5/01_try_except.pyc b/test/bytecode_3.5/01_try_except.pyc new file mode 100644 index 00000000..ba99c164 Binary files /dev/null and b/test/bytecode_3.5/01_try_except.pyc differ diff --git a/test/bytecode_3.5/02_closure.pyc b/test/bytecode_3.5/02_closure.pyc new file mode 100644 index 00000000..325924fb Binary files /dev/null and b/test/bytecode_3.5/02_closure.pyc differ diff --git a/test/bytecode_3.5/02_def.pyc b/test/bytecode_3.5/02_def.pyc new file mode 100644 index 00000000..31b91011 Binary files /dev/null and b/test/bytecode_3.5/02_def.pyc differ diff --git a/test/bytecode_3.5/02_slice.pyc b/test/bytecode_3.5/02_slice.pyc new file mode 100644 index 00000000..38a1b864 Binary files /dev/null and b/test/bytecode_3.5/02_slice.pyc differ diff --git a/test/bytecode_3.5/05_class.pyc b/test/bytecode_3.5/05_class.pyc new file mode 100644 index 00000000..fd1829fc Binary files /dev/null and b/test/bytecode_3.5/05_class.pyc differ diff --git a/test/bytecode_3.5/05_if.pyc b/test/bytecode_3.5/05_if.pyc new file mode 100644 index 00000000..2da2d073 Binary files /dev/null and b/test/bytecode_3.5/05_if.pyc differ diff --git a/test/bytecode_3.5/05_if_assign.pyc b/test/bytecode_3.5/05_if_assign.pyc new file mode 100644 index 00000000..8c494ad1 Binary files /dev/null and b/test/bytecode_3.5/05_if_assign.pyc differ diff --git a/test/bytecode_3.5/05_ifelse.pyc b/test/bytecode_3.5/05_ifelse.pyc new file mode 100644 index 00000000..8157b1ce Binary files /dev/null and b/test/bytecode_3.5/05_ifelse.pyc differ diff --git a/test/bytecode_3.5/05_list_comprehension.pyc b/test/bytecode_3.5/05_list_comprehension.pyc new file mode 100644 index 00000000..c8fd2d9d Binary files /dev/null and b/test/bytecode_3.5/05_list_comprehension.pyc differ diff --git a/test/bytecode_3.5/05_static_method.pyc b/test/bytecode_3.5/05_static_method.pyc new file mode 100644 index 00000000..071b0e2e Binary files /dev/null and b/test/bytecode_3.5/05_static_method.pyc differ diff --git a/test/bytecode_3.5/05_try_except.pyc_notyet b/test/bytecode_3.5/05_try_except.pyc_notyet new file mode 100644 index 00000000..cec1f55d Binary files /dev/null and b/test/bytecode_3.5/05_try_except.pyc_notyet differ diff --git a/test/bytecode_3.5/10_class.pyc b/test/bytecode_3.5/10_class.pyc new file mode 100644 index 00000000..9b287a3b Binary files /dev/null and b/test/bytecode_3.5/10_class.pyc differ diff --git a/test/bytecode_3.5/10_del.pyc b/test/bytecode_3.5/10_del.pyc new file mode 100644 index 00000000..714d7d16 Binary files /dev/null and b/test/bytecode_3.5/10_del.pyc differ diff --git a/test/bytecode_3.5/10_for.pyc b/test/bytecode_3.5/10_for.pyc new file mode 100644 index 00000000..82d64337 Binary files /dev/null and b/test/bytecode_3.5/10_for.pyc differ diff --git a/test/bytecode_3.5/10_keyword.pyc b/test/bytecode_3.5/10_keyword.pyc new file mode 100644 index 00000000..d8b5e03d Binary files /dev/null and b/test/bytecode_3.5/10_keyword.pyc differ diff --git a/test/bytecode_3.5/10_mixed_boolean.pyc b/test/bytecode_3.5/10_mixed_boolean.pyc new file mode 100644 index 00000000..d8be2198 Binary files /dev/null and b/test/bytecode_3.5/10_mixed_boolean.pyc differ diff --git a/test/bytecode_3.5/10_while.pyc b/test/bytecode_3.5/10_while.pyc new file mode 100644 index 00000000..cafea133 Binary files /dev/null and b/test/bytecode_3.5/10_while.pyc differ diff --git a/test/bytecode_3.5/15_assert.pyc b/test/bytecode_3.5/15_assert.pyc new file mode 100644 index 00000000..39438ce7 Binary files /dev/null and b/test/bytecode_3.5/15_assert.pyc differ diff --git a/test/bytecode_3.5/15_for_if.pyc_notyet b/test/bytecode_3.5/15_for_if.pyc_notyet new file mode 100644 index 00000000..db56a5a8 Binary files /dev/null and b/test/bytecode_3.5/15_for_if.pyc_notyet differ diff --git a/test/bytecode_3.5/20_try_except.pyc b/test/bytecode_3.5/20_try_except.pyc new file mode 100644 index 00000000..f1d731cd Binary files /dev/null and b/test/bytecode_3.5/20_try_except.pyc differ diff --git a/test/bytecode_3.5/25_try_except.pyc b/test/bytecode_3.5/25_try_except.pyc new file mode 100644 index 00000000..31d0f92b Binary files /dev/null and b/test/bytecode_3.5/25_try_except.pyc differ diff --git a/test/bytecompile-tests b/test/bytecompile-tests index 17d20ac6..f957612b 100755 --- a/test/bytecompile-tests +++ b/test/bytecompile-tests @@ -70,7 +70,8 @@ for root, dirs, basenames in os.walk('simple_source'): simple_source.append(os.path.join(root, basename)[0:-3]) pass -tests['2.6'] = tests['2.7'] = tests['3.2'] = tests['3.3'] = tests['3.4'] = simple_source +tests['2.6'] = tests['2.7'] = tests['3.2'] = \ + tests['3.3'] = tests['3.4'] = tests['3.5'] = simple_source total_tests = len(tests['2.7']) #tests['2.2'].sort(); print tests['2.2'] diff --git a/test/test_pythonlib.py b/test/test_pythonlib.py index 70eec7f6..820c9384 100755 --- a/test/test_pythonlib.py +++ b/test/test_pythonlib.py @@ -76,7 +76,7 @@ for vers in (2.7, 3.4): test_options[key] = (os.path.join(src_dir, pythonlib), PYC, key, vers) pass -for vers in (2.5, 2.6, 2.7, 3.2, 3.3, 3.4): +for vers in (2.5, 2.6, 2.7, 3.2, 3.3, 3.4, 3.5): bytecode = "bytecode_%s" % vers key = "bytecode-%s" % vers test_options[key] = (bytecode, PYC, bytecode, vers)