From e62a164f4d6fdc498bf4402f379440568046b17b Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Sun, 13 Sep 2020 03:52:57 +0900 Subject: [PATCH] Move tests -> extra_tests --- .dockerignore | 2 +- .github/workflows/ci.yaml | 4 ++-- .github/workflows/cron-ci.yaml | 8 ++++---- .gitignore | 2 +- DEVELOPMENT.md | 7 ++++--- {tests => extra_tests}/.gitignore | 0 {tests => extra_tests}/Pipfile | 0 {tests => extra_tests}/Pipfile.lock | 0 {tests => extra_tests}/README.md | 0 {tests => extra_tests}/benchmarks/perf_add.py | 0 {tests => extra_tests}/benchmarks/perf_fib.py | 0 {tests => extra_tests}/custom_text_test_runner.py | 0 .../generator/not_impl_methods_footer.txt | 0 .../generator/not_impl_methods_header.txt | 0 .../generator/not_impl_modules_footer.txt | 0 .../generator/not_impl_modules_header.txt | 0 {tests => extra_tests}/jsontests.py | 0 {tests => extra_tests}/not_impl_gen.py | 0 {tests => extra_tests}/snippets/3.1.2.13.py | 0 {tests => extra_tests}/snippets/3.1.2.16.py | 0 {tests => extra_tests}/snippets/3.1.2.18.py | 0 {tests => extra_tests}/snippets/3.1.2.19.py | 0 {tests => extra_tests}/snippets/3.1.3.2.py | 0 {tests => extra_tests}/snippets/3.1.3.4.py | 0 {tests => extra_tests}/snippets/3.1.3.5.py | 0 {tests => extra_tests}/snippets/assignment.py | 0 {tests => extra_tests}/snippets/ast_snippet.py | 0 {tests => extra_tests}/snippets/async_stuff.py | 0 {tests => extra_tests}/snippets/attr.py | 0 {tests => extra_tests}/snippets/basic_types.py | 0 {tests => extra_tests}/snippets/bools.py | 0 {tests => extra_tests}/snippets/builtin_abs.py | 0 {tests => extra_tests}/snippets/builtin_all.py | 0 {tests => extra_tests}/snippets/builtin_any.py | 0 {tests => extra_tests}/snippets/builtin_ascii.py | 0 {tests => extra_tests}/snippets/builtin_bin.py | 0 {tests => extra_tests}/snippets/builtin_callable.py | 0 {tests => extra_tests}/snippets/builtin_chr.py | 0 {tests => extra_tests}/snippets/builtin_complex.py | 0 {tests => extra_tests}/snippets/builtin_dict.py | 0 {tests => extra_tests}/snippets/builtin_dir.py | 0 {tests => extra_tests}/snippets/builtin_divmod.py | 0 .../snippets/builtin_enumerate.py | 0 {tests => extra_tests}/snippets/builtin_exec.py | 0 {tests => extra_tests}/snippets/builtin_file.py | 0 {tests => extra_tests}/snippets/builtin_filter.py | 0 {tests => extra_tests}/snippets/builtin_format.py | 0 {tests => extra_tests}/snippets/builtin_hex.py | 0 {tests => extra_tests}/snippets/builtin_len.py | 0 {tests => extra_tests}/snippets/builtin_locals.py | 0 {tests => extra_tests}/snippets/builtin_map.py | 0 {tests => extra_tests}/snippets/builtin_max.py | 0 {tests => extra_tests}/snippets/builtin_min.py | 0 {tests => extra_tests}/snippets/builtin_open.py | 0 {tests => extra_tests}/snippets/builtin_ord.py | 0 {tests => extra_tests}/snippets/builtin_pow.py | 0 {tests => extra_tests}/snippets/builtin_range.py | 0 {tests => extra_tests}/snippets/builtin_reversed.py | 0 {tests => extra_tests}/snippets/builtin_round.py | 0 {tests => extra_tests}/snippets/builtin_slice.py | 0 {tests => extra_tests}/snippets/builtin_thread.py | 0 {tests => extra_tests}/snippets/builtin_zip.py | 0 {tests => extra_tests}/snippets/builtins.py | 0 {tests => extra_tests}/snippets/builtins_module.py | 0 {tests => extra_tests}/snippets/bytearray.py | 0 {tests => extra_tests}/snippets/bytes.py | 0 {tests => extra_tests}/snippets/callables.py | 0 {tests => extra_tests}/snippets/cast.py | 0 {tests => extra_tests}/snippets/class.py | 0 {tests => extra_tests}/snippets/code.py | 0 {tests => extra_tests}/snippets/commas.py | 0 {tests => extra_tests}/snippets/comments.py | 0 {tests => extra_tests}/snippets/comparisons.py | 0 {tests => extra_tests}/snippets/comprehensions.py | 0 {tests => extra_tests}/snippets/control_flow.py | 0 {tests => extra_tests}/snippets/decorators.py | 0 {tests => extra_tests}/snippets/delete.py | 0 {tests => extra_tests}/snippets/derived_mc.py | 0 {tests => extra_tests}/snippets/dict.py | 0 {tests => extra_tests}/snippets/dict_union.py | 0 .../snippets/dir_main/__main__.py | 0 .../snippets/dir_module/__init__.py | 0 .../dir_module/dir_module_inner/__init__.py | 0 .../snippets/dir_module/relative.py | 0 {tests => extra_tests}/snippets/dismod.py | 0 {tests => extra_tests}/snippets/division_by_zero.py | 0 .../snippets/division_of_big_ints.py | 0 {tests => extra_tests}/snippets/ellipsis.py | 0 {tests => extra_tests}/snippets/encoding.py | 0 {tests => extra_tests}/snippets/exceptions.py | 0 {tests => extra_tests}/snippets/exit.py | 0 {tests => extra_tests}/snippets/extra_bool_eval.py | 0 {tests => extra_tests}/snippets/fizzbuzz.py | 0 {tests => extra_tests}/snippets/floats.py | 0 {tests => extra_tests}/snippets/for.py | 0 {tests => extra_tests}/snippets/frozen.py | 0 {tests => extra_tests}/snippets/fstrings.py | 0 {tests => extra_tests}/snippets/func_defaults.py | 0 {tests => extra_tests}/snippets/function.py | 0 {tests => extra_tests}/snippets/function_args.py | 0 {tests => extra_tests}/snippets/function_nested.py | 0 {tests => extra_tests}/snippets/funky_syntax.py | 0 {tests => extra_tests}/snippets/generators.py | 0 {tests => extra_tests}/snippets/getframe.py | 0 {tests => extra_tests}/snippets/global_nonlocal.py | 0 {tests => extra_tests}/snippets/hash.py | 0 {tests => extra_tests}/snippets/if.py | 0 {tests => extra_tests}/snippets/if_expressions.py | 0 .../snippets/imghdrdata/python.bmp | Bin .../snippets/imghdrdata/python.exr | Bin .../snippets/imghdrdata/python.gif | Bin .../snippets/imghdrdata/python.jpg | Bin .../snippets/imghdrdata/python.pbm | 0 .../snippets/imghdrdata/python.pgm | Bin .../snippets/imghdrdata/python.png | Bin .../snippets/imghdrdata/python.ppm | Bin .../snippets/imghdrdata/python.ras | Bin .../snippets/imghdrdata/python.sgi | Bin .../snippets/imghdrdata/python.tiff | Bin .../snippets/imghdrdata/python.webp | Bin .../snippets/imghdrdata/python.xbm | 0 {tests => extra_tests}/snippets/imp.py | 0 {tests => extra_tests}/snippets/import.py | 0 {tests => extra_tests}/snippets/import_file.py | 0 {tests => extra_tests}/snippets/import_mutual1.py | 0 {tests => extra_tests}/snippets/import_mutual2.py | 0 {tests => extra_tests}/snippets/import_name.py | 0 {tests => extra_tests}/snippets/import_star.py | 0 {tests => extra_tests}/snippets/import_target.py | 0 {tests => extra_tests}/snippets/indentation.py | 0 {tests => extra_tests}/snippets/index_overflow.py | 0 {tests => extra_tests}/snippets/inplace_ops.py | 0 .../snippets/int_float_comparisons.py | 0 {tests => extra_tests}/snippets/intro/3.1.1.1.py | 0 {tests => extra_tests}/snippets/intro/3.1.1.2.py | 0 {tests => extra_tests}/snippets/intro/3.1.1.3.py | 0 {tests => extra_tests}/snippets/intro/3.1.1.4.py | 0 {tests => extra_tests}/snippets/intro/3.1.1.6.py | 0 {tests => extra_tests}/snippets/intro/3.1.2.1.py | 0 {tests => extra_tests}/snippets/intro/3.1.2.10.py | 0 {tests => extra_tests}/snippets/intro/3.1.2.3.py | 0 {tests => extra_tests}/snippets/intro/3.1.2.4.py | 0 {tests => extra_tests}/snippets/intro/3.1.2.5.py | 0 {tests => extra_tests}/snippets/intro/3.1.2.6.py | 0 {tests => extra_tests}/snippets/ints.py | 0 {tests => extra_tests}/snippets/invalid_syntax.py | 0 {tests => extra_tests}/snippets/isinstance.py | 0 {tests => extra_tests}/snippets/issubclass.py | 0 {tests => extra_tests}/snippets/iterable.py | 0 {tests => extra_tests}/snippets/iterations.py | 0 {tests => extra_tests}/snippets/jit.py | 0 {tests => extra_tests}/snippets/json_snippet.py | 0 {tests => extra_tests}/snippets/list.py | 0 {tests => extra_tests}/snippets/literals.py | 0 {tests => extra_tests}/snippets/loop.py | 0 {tests => extra_tests}/snippets/mappingproxy.py | 0 {tests => extra_tests}/snippets/math_basics.py | 0 {tests => extra_tests}/snippets/membership.py | 0 {tests => extra_tests}/snippets/memoryview.py | 0 {tests => extra_tests}/snippets/metaclasses.py | 0 {tests => extra_tests}/snippets/minimum.py | 0 {tests => extra_tests}/snippets/module.py | 0 {tests => extra_tests}/snippets/mro.py | 0 {tests => extra_tests}/snippets/name.py | 0 {tests => extra_tests}/snippets/none.py | 0 {tests => extra_tests}/snippets/numbers.py | 0 {tests => extra_tests}/snippets/object.py | 0 {tests => extra_tests}/snippets/os_info.py | 0 {tests => extra_tests}/snippets/printing.py | 0 {tests => extra_tests}/snippets/property.py | 0 {tests => extra_tests}/snippets/set.py | 0 .../snippets/short_circuit_evaluations.py | 0 {tests => extra_tests}/snippets/slice.py | 0 {tests => extra_tests}/snippets/statements.py | 0 {tests => extra_tests}/snippets/stdlib_abc.py | 0 {tests => extra_tests}/snippets/stdlib_array.py | 0 {tests => extra_tests}/snippets/stdlib_binascii.py | 0 .../snippets/stdlib_collections.py | 0 {tests => extra_tests}/snippets/stdlib_csv.py | 0 {tests => extra_tests}/snippets/stdlib_datetime.py | 0 {tests => extra_tests}/snippets/stdlib_functools.py | 0 {tests => extra_tests}/snippets/stdlib_hashlib.py | 0 {tests => extra_tests}/snippets/stdlib_imghdr.py | 0 {tests => extra_tests}/snippets/stdlib_io.py | 0 .../snippets/stdlib_io_bytesio.py | 0 .../snippets/stdlib_io_stringio.py | 0 {tests => extra_tests}/snippets/stdlib_itertools.py | 0 {tests => extra_tests}/snippets/stdlib_logging.py | 0 {tests => extra_tests}/snippets/stdlib_marshal.py | 0 {tests => extra_tests}/snippets/stdlib_math.py | 0 {tests => extra_tests}/snippets/stdlib_operator.py | 0 {tests => extra_tests}/snippets/stdlib_os.py | 0 {tests => extra_tests}/snippets/stdlib_random.py | 0 {tests => extra_tests}/snippets/stdlib_re.py | 0 {tests => extra_tests}/snippets/stdlib_select.py | 0 {tests => extra_tests}/snippets/stdlib_signal.py | 0 {tests => extra_tests}/snippets/stdlib_socket.py | 0 {tests => extra_tests}/snippets/stdlib_string.py | 0 {tests => extra_tests}/snippets/stdlib_struct.py | 0 .../snippets/stdlib_subprocess.py | 0 {tests => extra_tests}/snippets/stdlib_sys.py | 0 {tests => extra_tests}/snippets/stdlib_time.py | 0 {tests => extra_tests}/snippets/stdlib_traceback.py | 0 {tests => extra_tests}/snippets/stdlib_types.py | 0 {tests => extra_tests}/snippets/stdlib_xdrlib.py | 0 {tests => extra_tests}/snippets/stdlib_zlib.py | 0 {tests => extra_tests}/snippets/strings.py | 0 {tests => extra_tests}/snippets/subclass_str.py | 0 {tests => extra_tests}/snippets/test_threading.py | 0 {tests => extra_tests}/snippets/test_warnings.py | 0 {tests => extra_tests}/snippets/testutils.py | 0 {tests => extra_tests}/snippets/try_exceptions.py | 0 {tests => extra_tests}/snippets/tuple.py | 0 {tests => extra_tests}/snippets/type_hints.py | 0 {tests => extra_tests}/snippets/types_snippet.py | 0 {tests => extra_tests}/snippets/unicode_fu.py | 0 {tests => extra_tests}/snippets/unicode_slicing.py | 0 {tests => extra_tests}/snippets/variables.py | 0 {tests => extra_tests}/snippets/weakrefs.py | 0 {tests => extra_tests}/snippets/with.py | 0 {tests => extra_tests}/snippets/xfail_assert.py | 0 {tests => extra_tests}/test_snippets.py | 2 +- pdc.sh | 2 +- src/main.rs | 8 ++++++-- whats_left.sh | 4 ++-- 225 files changed, 22 insertions(+), 17 deletions(-) rename {tests => extra_tests}/.gitignore (100%) rename {tests => extra_tests}/Pipfile (100%) rename {tests => extra_tests}/Pipfile.lock (100%) rename {tests => extra_tests}/README.md (100%) rename {tests => extra_tests}/benchmarks/perf_add.py (100%) rename {tests => extra_tests}/benchmarks/perf_fib.py (100%) rename {tests => extra_tests}/custom_text_test_runner.py (100%) rename {tests => extra_tests}/generator/not_impl_methods_footer.txt (100%) rename {tests => extra_tests}/generator/not_impl_methods_header.txt (100%) rename {tests => extra_tests}/generator/not_impl_modules_footer.txt (100%) rename {tests => extra_tests}/generator/not_impl_modules_header.txt (100%) rename {tests => extra_tests}/jsontests.py (100%) rename {tests => extra_tests}/not_impl_gen.py (100%) rename {tests => extra_tests}/snippets/3.1.2.13.py (100%) rename {tests => extra_tests}/snippets/3.1.2.16.py (100%) rename {tests => extra_tests}/snippets/3.1.2.18.py (100%) rename {tests => extra_tests}/snippets/3.1.2.19.py (100%) rename {tests => extra_tests}/snippets/3.1.3.2.py (100%) rename {tests => extra_tests}/snippets/3.1.3.4.py (100%) rename {tests => extra_tests}/snippets/3.1.3.5.py (100%) rename {tests => extra_tests}/snippets/assignment.py (100%) rename {tests => extra_tests}/snippets/ast_snippet.py (100%) rename {tests => extra_tests}/snippets/async_stuff.py (100%) rename {tests => extra_tests}/snippets/attr.py (100%) rename {tests => extra_tests}/snippets/basic_types.py (100%) rename {tests => extra_tests}/snippets/bools.py (100%) rename {tests => extra_tests}/snippets/builtin_abs.py (100%) rename {tests => extra_tests}/snippets/builtin_all.py (100%) rename {tests => extra_tests}/snippets/builtin_any.py (100%) rename {tests => extra_tests}/snippets/builtin_ascii.py (100%) rename {tests => extra_tests}/snippets/builtin_bin.py (100%) rename {tests => extra_tests}/snippets/builtin_callable.py (100%) rename {tests => extra_tests}/snippets/builtin_chr.py (100%) rename {tests => extra_tests}/snippets/builtin_complex.py (100%) rename {tests => extra_tests}/snippets/builtin_dict.py (100%) rename {tests => extra_tests}/snippets/builtin_dir.py (100%) rename {tests => extra_tests}/snippets/builtin_divmod.py (100%) rename {tests => extra_tests}/snippets/builtin_enumerate.py (100%) rename {tests => extra_tests}/snippets/builtin_exec.py (100%) rename {tests => extra_tests}/snippets/builtin_file.py (100%) rename {tests => extra_tests}/snippets/builtin_filter.py (100%) rename {tests => extra_tests}/snippets/builtin_format.py (100%) rename {tests => extra_tests}/snippets/builtin_hex.py (100%) rename {tests => extra_tests}/snippets/builtin_len.py (100%) rename {tests => extra_tests}/snippets/builtin_locals.py (100%) rename {tests => extra_tests}/snippets/builtin_map.py (100%) rename {tests => extra_tests}/snippets/builtin_max.py (100%) rename {tests => extra_tests}/snippets/builtin_min.py (100%) rename {tests => extra_tests}/snippets/builtin_open.py (100%) rename {tests => extra_tests}/snippets/builtin_ord.py (100%) rename {tests => extra_tests}/snippets/builtin_pow.py (100%) rename {tests => extra_tests}/snippets/builtin_range.py (100%) rename {tests => extra_tests}/snippets/builtin_reversed.py (100%) rename {tests => extra_tests}/snippets/builtin_round.py (100%) rename {tests => extra_tests}/snippets/builtin_slice.py (100%) rename {tests => extra_tests}/snippets/builtin_thread.py (100%) rename {tests => extra_tests}/snippets/builtin_zip.py (100%) rename {tests => extra_tests}/snippets/builtins.py (100%) rename {tests => extra_tests}/snippets/builtins_module.py (100%) rename {tests => extra_tests}/snippets/bytearray.py (100%) rename {tests => extra_tests}/snippets/bytes.py (100%) rename {tests => extra_tests}/snippets/callables.py (100%) rename {tests => extra_tests}/snippets/cast.py (100%) rename {tests => extra_tests}/snippets/class.py (100%) rename {tests => extra_tests}/snippets/code.py (100%) rename {tests => extra_tests}/snippets/commas.py (100%) rename {tests => extra_tests}/snippets/comments.py (100%) rename {tests => extra_tests}/snippets/comparisons.py (100%) rename {tests => extra_tests}/snippets/comprehensions.py (100%) rename {tests => extra_tests}/snippets/control_flow.py (100%) rename {tests => extra_tests}/snippets/decorators.py (100%) rename {tests => extra_tests}/snippets/delete.py (100%) rename {tests => extra_tests}/snippets/derived_mc.py (100%) rename {tests => extra_tests}/snippets/dict.py (100%) rename {tests => extra_tests}/snippets/dict_union.py (100%) rename {tests => extra_tests}/snippets/dir_main/__main__.py (100%) rename {tests => extra_tests}/snippets/dir_module/__init__.py (100%) rename {tests => extra_tests}/snippets/dir_module/dir_module_inner/__init__.py (100%) rename {tests => extra_tests}/snippets/dir_module/relative.py (100%) rename {tests => extra_tests}/snippets/dismod.py (100%) rename {tests => extra_tests}/snippets/division_by_zero.py (100%) rename {tests => extra_tests}/snippets/division_of_big_ints.py (100%) rename {tests => extra_tests}/snippets/ellipsis.py (100%) rename {tests => extra_tests}/snippets/encoding.py (100%) rename {tests => extra_tests}/snippets/exceptions.py (100%) rename {tests => extra_tests}/snippets/exit.py (100%) rename {tests => extra_tests}/snippets/extra_bool_eval.py (100%) rename {tests => extra_tests}/snippets/fizzbuzz.py (100%) rename {tests => extra_tests}/snippets/floats.py (100%) rename {tests => extra_tests}/snippets/for.py (100%) rename {tests => extra_tests}/snippets/frozen.py (100%) rename {tests => extra_tests}/snippets/fstrings.py (100%) rename {tests => extra_tests}/snippets/func_defaults.py (100%) rename {tests => extra_tests}/snippets/function.py (100%) rename {tests => extra_tests}/snippets/function_args.py (100%) rename {tests => extra_tests}/snippets/function_nested.py (100%) rename {tests => extra_tests}/snippets/funky_syntax.py (100%) rename {tests => extra_tests}/snippets/generators.py (100%) rename {tests => extra_tests}/snippets/getframe.py (100%) rename {tests => extra_tests}/snippets/global_nonlocal.py (100%) rename {tests => extra_tests}/snippets/hash.py (100%) rename {tests => extra_tests}/snippets/if.py (100%) rename {tests => extra_tests}/snippets/if_expressions.py (100%) rename {tests => extra_tests}/snippets/imghdrdata/python.bmp (100%) rename {tests => extra_tests}/snippets/imghdrdata/python.exr (100%) rename {tests => extra_tests}/snippets/imghdrdata/python.gif (100%) rename {tests => extra_tests}/snippets/imghdrdata/python.jpg (100%) rename {tests => extra_tests}/snippets/imghdrdata/python.pbm (100%) rename {tests => extra_tests}/snippets/imghdrdata/python.pgm (100%) rename {tests => extra_tests}/snippets/imghdrdata/python.png (100%) rename {tests => extra_tests}/snippets/imghdrdata/python.ppm (100%) rename {tests => extra_tests}/snippets/imghdrdata/python.ras (100%) rename {tests => extra_tests}/snippets/imghdrdata/python.sgi (100%) rename {tests => extra_tests}/snippets/imghdrdata/python.tiff (100%) rename {tests => extra_tests}/snippets/imghdrdata/python.webp (100%) rename {tests => extra_tests}/snippets/imghdrdata/python.xbm (100%) rename {tests => extra_tests}/snippets/imp.py (100%) rename {tests => extra_tests}/snippets/import.py (100%) rename {tests => extra_tests}/snippets/import_file.py (100%) rename {tests => extra_tests}/snippets/import_mutual1.py (100%) rename {tests => extra_tests}/snippets/import_mutual2.py (100%) rename {tests => extra_tests}/snippets/import_name.py (100%) rename {tests => extra_tests}/snippets/import_star.py (100%) rename {tests => extra_tests}/snippets/import_target.py (100%) rename {tests => extra_tests}/snippets/indentation.py (100%) rename {tests => extra_tests}/snippets/index_overflow.py (100%) rename {tests => extra_tests}/snippets/inplace_ops.py (100%) rename {tests => extra_tests}/snippets/int_float_comparisons.py (100%) rename {tests => extra_tests}/snippets/intro/3.1.1.1.py (100%) rename {tests => extra_tests}/snippets/intro/3.1.1.2.py (100%) rename {tests => extra_tests}/snippets/intro/3.1.1.3.py (100%) rename {tests => extra_tests}/snippets/intro/3.1.1.4.py (100%) rename {tests => extra_tests}/snippets/intro/3.1.1.6.py (100%) rename {tests => extra_tests}/snippets/intro/3.1.2.1.py (100%) rename {tests => extra_tests}/snippets/intro/3.1.2.10.py (100%) rename {tests => extra_tests}/snippets/intro/3.1.2.3.py (100%) rename {tests => extra_tests}/snippets/intro/3.1.2.4.py (100%) rename {tests => extra_tests}/snippets/intro/3.1.2.5.py (100%) rename {tests => extra_tests}/snippets/intro/3.1.2.6.py (100%) rename {tests => extra_tests}/snippets/ints.py (100%) rename {tests => extra_tests}/snippets/invalid_syntax.py (100%) rename {tests => extra_tests}/snippets/isinstance.py (100%) rename {tests => extra_tests}/snippets/issubclass.py (100%) rename {tests => extra_tests}/snippets/iterable.py (100%) rename {tests => extra_tests}/snippets/iterations.py (100%) rename {tests => extra_tests}/snippets/jit.py (100%) rename {tests => extra_tests}/snippets/json_snippet.py (100%) rename {tests => extra_tests}/snippets/list.py (100%) rename {tests => extra_tests}/snippets/literals.py (100%) rename {tests => extra_tests}/snippets/loop.py (100%) rename {tests => extra_tests}/snippets/mappingproxy.py (100%) rename {tests => extra_tests}/snippets/math_basics.py (100%) rename {tests => extra_tests}/snippets/membership.py (100%) rename {tests => extra_tests}/snippets/memoryview.py (100%) rename {tests => extra_tests}/snippets/metaclasses.py (100%) rename {tests => extra_tests}/snippets/minimum.py (100%) rename {tests => extra_tests}/snippets/module.py (100%) rename {tests => extra_tests}/snippets/mro.py (100%) rename {tests => extra_tests}/snippets/name.py (100%) rename {tests => extra_tests}/snippets/none.py (100%) rename {tests => extra_tests}/snippets/numbers.py (100%) rename {tests => extra_tests}/snippets/object.py (100%) rename {tests => extra_tests}/snippets/os_info.py (100%) rename {tests => extra_tests}/snippets/printing.py (100%) rename {tests => extra_tests}/snippets/property.py (100%) rename {tests => extra_tests}/snippets/set.py (100%) rename {tests => extra_tests}/snippets/short_circuit_evaluations.py (100%) rename {tests => extra_tests}/snippets/slice.py (100%) rename {tests => extra_tests}/snippets/statements.py (100%) rename {tests => extra_tests}/snippets/stdlib_abc.py (100%) rename {tests => extra_tests}/snippets/stdlib_array.py (100%) rename {tests => extra_tests}/snippets/stdlib_binascii.py (100%) rename {tests => extra_tests}/snippets/stdlib_collections.py (100%) rename {tests => extra_tests}/snippets/stdlib_csv.py (100%) rename {tests => extra_tests}/snippets/stdlib_datetime.py (100%) rename {tests => extra_tests}/snippets/stdlib_functools.py (100%) rename {tests => extra_tests}/snippets/stdlib_hashlib.py (100%) rename {tests => extra_tests}/snippets/stdlib_imghdr.py (100%) rename {tests => extra_tests}/snippets/stdlib_io.py (100%) rename {tests => extra_tests}/snippets/stdlib_io_bytesio.py (100%) rename {tests => extra_tests}/snippets/stdlib_io_stringio.py (100%) rename {tests => extra_tests}/snippets/stdlib_itertools.py (100%) rename {tests => extra_tests}/snippets/stdlib_logging.py (100%) rename {tests => extra_tests}/snippets/stdlib_marshal.py (100%) rename {tests => extra_tests}/snippets/stdlib_math.py (100%) rename {tests => extra_tests}/snippets/stdlib_operator.py (100%) rename {tests => extra_tests}/snippets/stdlib_os.py (100%) rename {tests => extra_tests}/snippets/stdlib_random.py (100%) rename {tests => extra_tests}/snippets/stdlib_re.py (100%) rename {tests => extra_tests}/snippets/stdlib_select.py (100%) rename {tests => extra_tests}/snippets/stdlib_signal.py (100%) rename {tests => extra_tests}/snippets/stdlib_socket.py (100%) rename {tests => extra_tests}/snippets/stdlib_string.py (100%) rename {tests => extra_tests}/snippets/stdlib_struct.py (100%) rename {tests => extra_tests}/snippets/stdlib_subprocess.py (100%) rename {tests => extra_tests}/snippets/stdlib_sys.py (100%) rename {tests => extra_tests}/snippets/stdlib_time.py (100%) rename {tests => extra_tests}/snippets/stdlib_traceback.py (100%) rename {tests => extra_tests}/snippets/stdlib_types.py (100%) rename {tests => extra_tests}/snippets/stdlib_xdrlib.py (100%) rename {tests => extra_tests}/snippets/stdlib_zlib.py (100%) rename {tests => extra_tests}/snippets/strings.py (100%) rename {tests => extra_tests}/snippets/subclass_str.py (100%) rename {tests => extra_tests}/snippets/test_threading.py (100%) rename {tests => extra_tests}/snippets/test_warnings.py (100%) rename {tests => extra_tests}/snippets/testutils.py (100%) rename {tests => extra_tests}/snippets/try_exceptions.py (100%) rename {tests => extra_tests}/snippets/tuple.py (100%) rename {tests => extra_tests}/snippets/type_hints.py (100%) rename {tests => extra_tests}/snippets/types_snippet.py (100%) rename {tests => extra_tests}/snippets/unicode_fu.py (100%) rename {tests => extra_tests}/snippets/unicode_slicing.py (100%) rename {tests => extra_tests}/snippets/variables.py (100%) rename {tests => extra_tests}/snippets/weakrefs.py (100%) rename {tests => extra_tests}/snippets/with.py (100%) rename {tests => extra_tests}/snippets/xfail_assert.py (100%) rename {tests => extra_tests}/test_snippets.py (98%) diff --git a/.dockerignore b/.dockerignore index 3a111317c..d22dc864b 100644 --- a/.dockerignore +++ b/.dockerignore @@ -8,7 +8,7 @@ .vscode wasm-pack.log .idea/ -tests/snippets/resources +extra_tests/snippets/resources flame-graph.html flame.txt diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e0cb0469d..6edca9e91 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -84,10 +84,10 @@ jobs: python -m pip install --upgrade pip python -m pip install pipenv - run: pipenv install - working-directory: ./tests + working-directory: ./extra_tests - name: run snippets run: pipenv run pytest -v - working-directory: ./tests + working-directory: ./extra_tests - name: run cpython tests run: target/release/rustpython -m test -v env: diff --git a/.github/workflows/cron-ci.yaml b/.github/workflows/cron-ci.yaml index ed601d75f..c9e8d49e4 100644 --- a/.github/workflows/cron-ci.yaml +++ b/.github/workflows/cron-ci.yaml @@ -40,10 +40,10 @@ jobs: python -m pip install --upgrade pip python -m pip install pipenv - run: pipenv install - working-directory: ./tests + working-directory: ./extra_tests - name: run snippets run: pipenv run pytest -v - working-directory: ./tests + working-directory: ./extra_tests env: RUSTPYTHON_DEBUG: 'true' - name: run cpython tests @@ -68,7 +68,7 @@ jobs: command: build args: --release --verbose --all - name: collect tests data - run: cargo run --release tests/jsontests.py + run: cargo run --release extra_tests/jsontests.py env: RUSTPYTHONPATH: ${{ github.workspace }}/Lib - name: upload tests data to the website @@ -82,7 +82,7 @@ jobs: git clone git@github.com:RustPython/rustpython.github.io.git website cd website - cp ../tests/cpython_tests_results.json ./_data/regrtests_results.json + cp ../extra_tests/cpython_tests_results.json ./_data/regrtests_results.json git add ./_data/regrtests_results.json git -c user.name="Github Actions" -c user.email="actions@github.com" commit -m "Update regression test results" --author="$GITHUB_ACTOR" git push diff --git a/.gitignore b/.gitignore index 05270f95d..270758d50 100644 --- a/.gitignore +++ b/.gitignore @@ -9,7 +9,7 @@ __pycache__ .vscode wasm-pack.log .idea/ -tests/snippets/resources +extra_tests/snippets/resources flame-graph.html flame.txt diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 9b5321129..d534515b2 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -51,10 +51,10 @@ Python code should follow the ## Testing To test RustPython's functionality, a collection of Python snippets is located -in the `tests/snippets` directory and can be run using `pytest`: +in the `extra_tests/snippets` directory and can be run using `pytest`: ```shell -$ cd tests +$ cd extra_tests $ pytest -v ``` @@ -93,6 +93,7 @@ repository's structure: - `parser/src`: python lexing, parsing and ast - `Lib`: Carefully selected / copied files from CPython sourcecode. This is the python side of the standard library. + - `test`: CPython test suite - `vm/src`: python virtual machine - `builtins.rs`: Builtin functions - `compile.rs`: the python compiler from ast to bytecode @@ -103,7 +104,7 @@ repository's structure: - `py_code_object`: CPython bytecode to rustpython bytecode converter (work in progress) - `wasm`: Binary crate and resources for WebAssembly build -- `tests`: integration test snippets +- `extra_tests`: extra integration test snippets as supplement of `Lib/test` ## Understanding Internals diff --git a/tests/.gitignore b/extra_tests/.gitignore similarity index 100% rename from tests/.gitignore rename to extra_tests/.gitignore diff --git a/tests/Pipfile b/extra_tests/Pipfile similarity index 100% rename from tests/Pipfile rename to extra_tests/Pipfile diff --git a/tests/Pipfile.lock b/extra_tests/Pipfile.lock similarity index 100% rename from tests/Pipfile.lock rename to extra_tests/Pipfile.lock diff --git a/tests/README.md b/extra_tests/README.md similarity index 100% rename from tests/README.md rename to extra_tests/README.md diff --git a/tests/benchmarks/perf_add.py b/extra_tests/benchmarks/perf_add.py similarity index 100% rename from tests/benchmarks/perf_add.py rename to extra_tests/benchmarks/perf_add.py diff --git a/tests/benchmarks/perf_fib.py b/extra_tests/benchmarks/perf_fib.py similarity index 100% rename from tests/benchmarks/perf_fib.py rename to extra_tests/benchmarks/perf_fib.py diff --git a/tests/custom_text_test_runner.py b/extra_tests/custom_text_test_runner.py similarity index 100% rename from tests/custom_text_test_runner.py rename to extra_tests/custom_text_test_runner.py diff --git a/tests/generator/not_impl_methods_footer.txt b/extra_tests/generator/not_impl_methods_footer.txt similarity index 100% rename from tests/generator/not_impl_methods_footer.txt rename to extra_tests/generator/not_impl_methods_footer.txt diff --git a/tests/generator/not_impl_methods_header.txt b/extra_tests/generator/not_impl_methods_header.txt similarity index 100% rename from tests/generator/not_impl_methods_header.txt rename to extra_tests/generator/not_impl_methods_header.txt diff --git a/tests/generator/not_impl_modules_footer.txt b/extra_tests/generator/not_impl_modules_footer.txt similarity index 100% rename from tests/generator/not_impl_modules_footer.txt rename to extra_tests/generator/not_impl_modules_footer.txt diff --git a/tests/generator/not_impl_modules_header.txt b/extra_tests/generator/not_impl_modules_header.txt similarity index 100% rename from tests/generator/not_impl_modules_header.txt rename to extra_tests/generator/not_impl_modules_header.txt diff --git a/tests/jsontests.py b/extra_tests/jsontests.py similarity index 100% rename from tests/jsontests.py rename to extra_tests/jsontests.py diff --git a/tests/not_impl_gen.py b/extra_tests/not_impl_gen.py similarity index 100% rename from tests/not_impl_gen.py rename to extra_tests/not_impl_gen.py diff --git a/tests/snippets/3.1.2.13.py b/extra_tests/snippets/3.1.2.13.py similarity index 100% rename from tests/snippets/3.1.2.13.py rename to extra_tests/snippets/3.1.2.13.py diff --git a/tests/snippets/3.1.2.16.py b/extra_tests/snippets/3.1.2.16.py similarity index 100% rename from tests/snippets/3.1.2.16.py rename to extra_tests/snippets/3.1.2.16.py diff --git a/tests/snippets/3.1.2.18.py b/extra_tests/snippets/3.1.2.18.py similarity index 100% rename from tests/snippets/3.1.2.18.py rename to extra_tests/snippets/3.1.2.18.py diff --git a/tests/snippets/3.1.2.19.py b/extra_tests/snippets/3.1.2.19.py similarity index 100% rename from tests/snippets/3.1.2.19.py rename to extra_tests/snippets/3.1.2.19.py diff --git a/tests/snippets/3.1.3.2.py b/extra_tests/snippets/3.1.3.2.py similarity index 100% rename from tests/snippets/3.1.3.2.py rename to extra_tests/snippets/3.1.3.2.py diff --git a/tests/snippets/3.1.3.4.py b/extra_tests/snippets/3.1.3.4.py similarity index 100% rename from tests/snippets/3.1.3.4.py rename to extra_tests/snippets/3.1.3.4.py diff --git a/tests/snippets/3.1.3.5.py b/extra_tests/snippets/3.1.3.5.py similarity index 100% rename from tests/snippets/3.1.3.5.py rename to extra_tests/snippets/3.1.3.5.py diff --git a/tests/snippets/assignment.py b/extra_tests/snippets/assignment.py similarity index 100% rename from tests/snippets/assignment.py rename to extra_tests/snippets/assignment.py diff --git a/tests/snippets/ast_snippet.py b/extra_tests/snippets/ast_snippet.py similarity index 100% rename from tests/snippets/ast_snippet.py rename to extra_tests/snippets/ast_snippet.py diff --git a/tests/snippets/async_stuff.py b/extra_tests/snippets/async_stuff.py similarity index 100% rename from tests/snippets/async_stuff.py rename to extra_tests/snippets/async_stuff.py diff --git a/tests/snippets/attr.py b/extra_tests/snippets/attr.py similarity index 100% rename from tests/snippets/attr.py rename to extra_tests/snippets/attr.py diff --git a/tests/snippets/basic_types.py b/extra_tests/snippets/basic_types.py similarity index 100% rename from tests/snippets/basic_types.py rename to extra_tests/snippets/basic_types.py diff --git a/tests/snippets/bools.py b/extra_tests/snippets/bools.py similarity index 100% rename from tests/snippets/bools.py rename to extra_tests/snippets/bools.py diff --git a/tests/snippets/builtin_abs.py b/extra_tests/snippets/builtin_abs.py similarity index 100% rename from tests/snippets/builtin_abs.py rename to extra_tests/snippets/builtin_abs.py diff --git a/tests/snippets/builtin_all.py b/extra_tests/snippets/builtin_all.py similarity index 100% rename from tests/snippets/builtin_all.py rename to extra_tests/snippets/builtin_all.py diff --git a/tests/snippets/builtin_any.py b/extra_tests/snippets/builtin_any.py similarity index 100% rename from tests/snippets/builtin_any.py rename to extra_tests/snippets/builtin_any.py diff --git a/tests/snippets/builtin_ascii.py b/extra_tests/snippets/builtin_ascii.py similarity index 100% rename from tests/snippets/builtin_ascii.py rename to extra_tests/snippets/builtin_ascii.py diff --git a/tests/snippets/builtin_bin.py b/extra_tests/snippets/builtin_bin.py similarity index 100% rename from tests/snippets/builtin_bin.py rename to extra_tests/snippets/builtin_bin.py diff --git a/tests/snippets/builtin_callable.py b/extra_tests/snippets/builtin_callable.py similarity index 100% rename from tests/snippets/builtin_callable.py rename to extra_tests/snippets/builtin_callable.py diff --git a/tests/snippets/builtin_chr.py b/extra_tests/snippets/builtin_chr.py similarity index 100% rename from tests/snippets/builtin_chr.py rename to extra_tests/snippets/builtin_chr.py diff --git a/tests/snippets/builtin_complex.py b/extra_tests/snippets/builtin_complex.py similarity index 100% rename from tests/snippets/builtin_complex.py rename to extra_tests/snippets/builtin_complex.py diff --git a/tests/snippets/builtin_dict.py b/extra_tests/snippets/builtin_dict.py similarity index 100% rename from tests/snippets/builtin_dict.py rename to extra_tests/snippets/builtin_dict.py diff --git a/tests/snippets/builtin_dir.py b/extra_tests/snippets/builtin_dir.py similarity index 100% rename from tests/snippets/builtin_dir.py rename to extra_tests/snippets/builtin_dir.py diff --git a/tests/snippets/builtin_divmod.py b/extra_tests/snippets/builtin_divmod.py similarity index 100% rename from tests/snippets/builtin_divmod.py rename to extra_tests/snippets/builtin_divmod.py diff --git a/tests/snippets/builtin_enumerate.py b/extra_tests/snippets/builtin_enumerate.py similarity index 100% rename from tests/snippets/builtin_enumerate.py rename to extra_tests/snippets/builtin_enumerate.py diff --git a/tests/snippets/builtin_exec.py b/extra_tests/snippets/builtin_exec.py similarity index 100% rename from tests/snippets/builtin_exec.py rename to extra_tests/snippets/builtin_exec.py diff --git a/tests/snippets/builtin_file.py b/extra_tests/snippets/builtin_file.py similarity index 100% rename from tests/snippets/builtin_file.py rename to extra_tests/snippets/builtin_file.py diff --git a/tests/snippets/builtin_filter.py b/extra_tests/snippets/builtin_filter.py similarity index 100% rename from tests/snippets/builtin_filter.py rename to extra_tests/snippets/builtin_filter.py diff --git a/tests/snippets/builtin_format.py b/extra_tests/snippets/builtin_format.py similarity index 100% rename from tests/snippets/builtin_format.py rename to extra_tests/snippets/builtin_format.py diff --git a/tests/snippets/builtin_hex.py b/extra_tests/snippets/builtin_hex.py similarity index 100% rename from tests/snippets/builtin_hex.py rename to extra_tests/snippets/builtin_hex.py diff --git a/tests/snippets/builtin_len.py b/extra_tests/snippets/builtin_len.py similarity index 100% rename from tests/snippets/builtin_len.py rename to extra_tests/snippets/builtin_len.py diff --git a/tests/snippets/builtin_locals.py b/extra_tests/snippets/builtin_locals.py similarity index 100% rename from tests/snippets/builtin_locals.py rename to extra_tests/snippets/builtin_locals.py diff --git a/tests/snippets/builtin_map.py b/extra_tests/snippets/builtin_map.py similarity index 100% rename from tests/snippets/builtin_map.py rename to extra_tests/snippets/builtin_map.py diff --git a/tests/snippets/builtin_max.py b/extra_tests/snippets/builtin_max.py similarity index 100% rename from tests/snippets/builtin_max.py rename to extra_tests/snippets/builtin_max.py diff --git a/tests/snippets/builtin_min.py b/extra_tests/snippets/builtin_min.py similarity index 100% rename from tests/snippets/builtin_min.py rename to extra_tests/snippets/builtin_min.py diff --git a/tests/snippets/builtin_open.py b/extra_tests/snippets/builtin_open.py similarity index 100% rename from tests/snippets/builtin_open.py rename to extra_tests/snippets/builtin_open.py diff --git a/tests/snippets/builtin_ord.py b/extra_tests/snippets/builtin_ord.py similarity index 100% rename from tests/snippets/builtin_ord.py rename to extra_tests/snippets/builtin_ord.py diff --git a/tests/snippets/builtin_pow.py b/extra_tests/snippets/builtin_pow.py similarity index 100% rename from tests/snippets/builtin_pow.py rename to extra_tests/snippets/builtin_pow.py diff --git a/tests/snippets/builtin_range.py b/extra_tests/snippets/builtin_range.py similarity index 100% rename from tests/snippets/builtin_range.py rename to extra_tests/snippets/builtin_range.py diff --git a/tests/snippets/builtin_reversed.py b/extra_tests/snippets/builtin_reversed.py similarity index 100% rename from tests/snippets/builtin_reversed.py rename to extra_tests/snippets/builtin_reversed.py diff --git a/tests/snippets/builtin_round.py b/extra_tests/snippets/builtin_round.py similarity index 100% rename from tests/snippets/builtin_round.py rename to extra_tests/snippets/builtin_round.py diff --git a/tests/snippets/builtin_slice.py b/extra_tests/snippets/builtin_slice.py similarity index 100% rename from tests/snippets/builtin_slice.py rename to extra_tests/snippets/builtin_slice.py diff --git a/tests/snippets/builtin_thread.py b/extra_tests/snippets/builtin_thread.py similarity index 100% rename from tests/snippets/builtin_thread.py rename to extra_tests/snippets/builtin_thread.py diff --git a/tests/snippets/builtin_zip.py b/extra_tests/snippets/builtin_zip.py similarity index 100% rename from tests/snippets/builtin_zip.py rename to extra_tests/snippets/builtin_zip.py diff --git a/tests/snippets/builtins.py b/extra_tests/snippets/builtins.py similarity index 100% rename from tests/snippets/builtins.py rename to extra_tests/snippets/builtins.py diff --git a/tests/snippets/builtins_module.py b/extra_tests/snippets/builtins_module.py similarity index 100% rename from tests/snippets/builtins_module.py rename to extra_tests/snippets/builtins_module.py diff --git a/tests/snippets/bytearray.py b/extra_tests/snippets/bytearray.py similarity index 100% rename from tests/snippets/bytearray.py rename to extra_tests/snippets/bytearray.py diff --git a/tests/snippets/bytes.py b/extra_tests/snippets/bytes.py similarity index 100% rename from tests/snippets/bytes.py rename to extra_tests/snippets/bytes.py diff --git a/tests/snippets/callables.py b/extra_tests/snippets/callables.py similarity index 100% rename from tests/snippets/callables.py rename to extra_tests/snippets/callables.py diff --git a/tests/snippets/cast.py b/extra_tests/snippets/cast.py similarity index 100% rename from tests/snippets/cast.py rename to extra_tests/snippets/cast.py diff --git a/tests/snippets/class.py b/extra_tests/snippets/class.py similarity index 100% rename from tests/snippets/class.py rename to extra_tests/snippets/class.py diff --git a/tests/snippets/code.py b/extra_tests/snippets/code.py similarity index 100% rename from tests/snippets/code.py rename to extra_tests/snippets/code.py diff --git a/tests/snippets/commas.py b/extra_tests/snippets/commas.py similarity index 100% rename from tests/snippets/commas.py rename to extra_tests/snippets/commas.py diff --git a/tests/snippets/comments.py b/extra_tests/snippets/comments.py similarity index 100% rename from tests/snippets/comments.py rename to extra_tests/snippets/comments.py diff --git a/tests/snippets/comparisons.py b/extra_tests/snippets/comparisons.py similarity index 100% rename from tests/snippets/comparisons.py rename to extra_tests/snippets/comparisons.py diff --git a/tests/snippets/comprehensions.py b/extra_tests/snippets/comprehensions.py similarity index 100% rename from tests/snippets/comprehensions.py rename to extra_tests/snippets/comprehensions.py diff --git a/tests/snippets/control_flow.py b/extra_tests/snippets/control_flow.py similarity index 100% rename from tests/snippets/control_flow.py rename to extra_tests/snippets/control_flow.py diff --git a/tests/snippets/decorators.py b/extra_tests/snippets/decorators.py similarity index 100% rename from tests/snippets/decorators.py rename to extra_tests/snippets/decorators.py diff --git a/tests/snippets/delete.py b/extra_tests/snippets/delete.py similarity index 100% rename from tests/snippets/delete.py rename to extra_tests/snippets/delete.py diff --git a/tests/snippets/derived_mc.py b/extra_tests/snippets/derived_mc.py similarity index 100% rename from tests/snippets/derived_mc.py rename to extra_tests/snippets/derived_mc.py diff --git a/tests/snippets/dict.py b/extra_tests/snippets/dict.py similarity index 100% rename from tests/snippets/dict.py rename to extra_tests/snippets/dict.py diff --git a/tests/snippets/dict_union.py b/extra_tests/snippets/dict_union.py similarity index 100% rename from tests/snippets/dict_union.py rename to extra_tests/snippets/dict_union.py diff --git a/tests/snippets/dir_main/__main__.py b/extra_tests/snippets/dir_main/__main__.py similarity index 100% rename from tests/snippets/dir_main/__main__.py rename to extra_tests/snippets/dir_main/__main__.py diff --git a/tests/snippets/dir_module/__init__.py b/extra_tests/snippets/dir_module/__init__.py similarity index 100% rename from tests/snippets/dir_module/__init__.py rename to extra_tests/snippets/dir_module/__init__.py diff --git a/tests/snippets/dir_module/dir_module_inner/__init__.py b/extra_tests/snippets/dir_module/dir_module_inner/__init__.py similarity index 100% rename from tests/snippets/dir_module/dir_module_inner/__init__.py rename to extra_tests/snippets/dir_module/dir_module_inner/__init__.py diff --git a/tests/snippets/dir_module/relative.py b/extra_tests/snippets/dir_module/relative.py similarity index 100% rename from tests/snippets/dir_module/relative.py rename to extra_tests/snippets/dir_module/relative.py diff --git a/tests/snippets/dismod.py b/extra_tests/snippets/dismod.py similarity index 100% rename from tests/snippets/dismod.py rename to extra_tests/snippets/dismod.py diff --git a/tests/snippets/division_by_zero.py b/extra_tests/snippets/division_by_zero.py similarity index 100% rename from tests/snippets/division_by_zero.py rename to extra_tests/snippets/division_by_zero.py diff --git a/tests/snippets/division_of_big_ints.py b/extra_tests/snippets/division_of_big_ints.py similarity index 100% rename from tests/snippets/division_of_big_ints.py rename to extra_tests/snippets/division_of_big_ints.py diff --git a/tests/snippets/ellipsis.py b/extra_tests/snippets/ellipsis.py similarity index 100% rename from tests/snippets/ellipsis.py rename to extra_tests/snippets/ellipsis.py diff --git a/tests/snippets/encoding.py b/extra_tests/snippets/encoding.py similarity index 100% rename from tests/snippets/encoding.py rename to extra_tests/snippets/encoding.py diff --git a/tests/snippets/exceptions.py b/extra_tests/snippets/exceptions.py similarity index 100% rename from tests/snippets/exceptions.py rename to extra_tests/snippets/exceptions.py diff --git a/tests/snippets/exit.py b/extra_tests/snippets/exit.py similarity index 100% rename from tests/snippets/exit.py rename to extra_tests/snippets/exit.py diff --git a/tests/snippets/extra_bool_eval.py b/extra_tests/snippets/extra_bool_eval.py similarity index 100% rename from tests/snippets/extra_bool_eval.py rename to extra_tests/snippets/extra_bool_eval.py diff --git a/tests/snippets/fizzbuzz.py b/extra_tests/snippets/fizzbuzz.py similarity index 100% rename from tests/snippets/fizzbuzz.py rename to extra_tests/snippets/fizzbuzz.py diff --git a/tests/snippets/floats.py b/extra_tests/snippets/floats.py similarity index 100% rename from tests/snippets/floats.py rename to extra_tests/snippets/floats.py diff --git a/tests/snippets/for.py b/extra_tests/snippets/for.py similarity index 100% rename from tests/snippets/for.py rename to extra_tests/snippets/for.py diff --git a/tests/snippets/frozen.py b/extra_tests/snippets/frozen.py similarity index 100% rename from tests/snippets/frozen.py rename to extra_tests/snippets/frozen.py diff --git a/tests/snippets/fstrings.py b/extra_tests/snippets/fstrings.py similarity index 100% rename from tests/snippets/fstrings.py rename to extra_tests/snippets/fstrings.py diff --git a/tests/snippets/func_defaults.py b/extra_tests/snippets/func_defaults.py similarity index 100% rename from tests/snippets/func_defaults.py rename to extra_tests/snippets/func_defaults.py diff --git a/tests/snippets/function.py b/extra_tests/snippets/function.py similarity index 100% rename from tests/snippets/function.py rename to extra_tests/snippets/function.py diff --git a/tests/snippets/function_args.py b/extra_tests/snippets/function_args.py similarity index 100% rename from tests/snippets/function_args.py rename to extra_tests/snippets/function_args.py diff --git a/tests/snippets/function_nested.py b/extra_tests/snippets/function_nested.py similarity index 100% rename from tests/snippets/function_nested.py rename to extra_tests/snippets/function_nested.py diff --git a/tests/snippets/funky_syntax.py b/extra_tests/snippets/funky_syntax.py similarity index 100% rename from tests/snippets/funky_syntax.py rename to extra_tests/snippets/funky_syntax.py diff --git a/tests/snippets/generators.py b/extra_tests/snippets/generators.py similarity index 100% rename from tests/snippets/generators.py rename to extra_tests/snippets/generators.py diff --git a/tests/snippets/getframe.py b/extra_tests/snippets/getframe.py similarity index 100% rename from tests/snippets/getframe.py rename to extra_tests/snippets/getframe.py diff --git a/tests/snippets/global_nonlocal.py b/extra_tests/snippets/global_nonlocal.py similarity index 100% rename from tests/snippets/global_nonlocal.py rename to extra_tests/snippets/global_nonlocal.py diff --git a/tests/snippets/hash.py b/extra_tests/snippets/hash.py similarity index 100% rename from tests/snippets/hash.py rename to extra_tests/snippets/hash.py diff --git a/tests/snippets/if.py b/extra_tests/snippets/if.py similarity index 100% rename from tests/snippets/if.py rename to extra_tests/snippets/if.py diff --git a/tests/snippets/if_expressions.py b/extra_tests/snippets/if_expressions.py similarity index 100% rename from tests/snippets/if_expressions.py rename to extra_tests/snippets/if_expressions.py diff --git a/tests/snippets/imghdrdata/python.bmp b/extra_tests/snippets/imghdrdata/python.bmp similarity index 100% rename from tests/snippets/imghdrdata/python.bmp rename to extra_tests/snippets/imghdrdata/python.bmp diff --git a/tests/snippets/imghdrdata/python.exr b/extra_tests/snippets/imghdrdata/python.exr similarity index 100% rename from tests/snippets/imghdrdata/python.exr rename to extra_tests/snippets/imghdrdata/python.exr diff --git a/tests/snippets/imghdrdata/python.gif b/extra_tests/snippets/imghdrdata/python.gif similarity index 100% rename from tests/snippets/imghdrdata/python.gif rename to extra_tests/snippets/imghdrdata/python.gif diff --git a/tests/snippets/imghdrdata/python.jpg b/extra_tests/snippets/imghdrdata/python.jpg similarity index 100% rename from tests/snippets/imghdrdata/python.jpg rename to extra_tests/snippets/imghdrdata/python.jpg diff --git a/tests/snippets/imghdrdata/python.pbm b/extra_tests/snippets/imghdrdata/python.pbm similarity index 100% rename from tests/snippets/imghdrdata/python.pbm rename to extra_tests/snippets/imghdrdata/python.pbm diff --git a/tests/snippets/imghdrdata/python.pgm b/extra_tests/snippets/imghdrdata/python.pgm similarity index 100% rename from tests/snippets/imghdrdata/python.pgm rename to extra_tests/snippets/imghdrdata/python.pgm diff --git a/tests/snippets/imghdrdata/python.png b/extra_tests/snippets/imghdrdata/python.png similarity index 100% rename from tests/snippets/imghdrdata/python.png rename to extra_tests/snippets/imghdrdata/python.png diff --git a/tests/snippets/imghdrdata/python.ppm b/extra_tests/snippets/imghdrdata/python.ppm similarity index 100% rename from tests/snippets/imghdrdata/python.ppm rename to extra_tests/snippets/imghdrdata/python.ppm diff --git a/tests/snippets/imghdrdata/python.ras b/extra_tests/snippets/imghdrdata/python.ras similarity index 100% rename from tests/snippets/imghdrdata/python.ras rename to extra_tests/snippets/imghdrdata/python.ras diff --git a/tests/snippets/imghdrdata/python.sgi b/extra_tests/snippets/imghdrdata/python.sgi similarity index 100% rename from tests/snippets/imghdrdata/python.sgi rename to extra_tests/snippets/imghdrdata/python.sgi diff --git a/tests/snippets/imghdrdata/python.tiff b/extra_tests/snippets/imghdrdata/python.tiff similarity index 100% rename from tests/snippets/imghdrdata/python.tiff rename to extra_tests/snippets/imghdrdata/python.tiff diff --git a/tests/snippets/imghdrdata/python.webp b/extra_tests/snippets/imghdrdata/python.webp similarity index 100% rename from tests/snippets/imghdrdata/python.webp rename to extra_tests/snippets/imghdrdata/python.webp diff --git a/tests/snippets/imghdrdata/python.xbm b/extra_tests/snippets/imghdrdata/python.xbm similarity index 100% rename from tests/snippets/imghdrdata/python.xbm rename to extra_tests/snippets/imghdrdata/python.xbm diff --git a/tests/snippets/imp.py b/extra_tests/snippets/imp.py similarity index 100% rename from tests/snippets/imp.py rename to extra_tests/snippets/imp.py diff --git a/tests/snippets/import.py b/extra_tests/snippets/import.py similarity index 100% rename from tests/snippets/import.py rename to extra_tests/snippets/import.py diff --git a/tests/snippets/import_file.py b/extra_tests/snippets/import_file.py similarity index 100% rename from tests/snippets/import_file.py rename to extra_tests/snippets/import_file.py diff --git a/tests/snippets/import_mutual1.py b/extra_tests/snippets/import_mutual1.py similarity index 100% rename from tests/snippets/import_mutual1.py rename to extra_tests/snippets/import_mutual1.py diff --git a/tests/snippets/import_mutual2.py b/extra_tests/snippets/import_mutual2.py similarity index 100% rename from tests/snippets/import_mutual2.py rename to extra_tests/snippets/import_mutual2.py diff --git a/tests/snippets/import_name.py b/extra_tests/snippets/import_name.py similarity index 100% rename from tests/snippets/import_name.py rename to extra_tests/snippets/import_name.py diff --git a/tests/snippets/import_star.py b/extra_tests/snippets/import_star.py similarity index 100% rename from tests/snippets/import_star.py rename to extra_tests/snippets/import_star.py diff --git a/tests/snippets/import_target.py b/extra_tests/snippets/import_target.py similarity index 100% rename from tests/snippets/import_target.py rename to extra_tests/snippets/import_target.py diff --git a/tests/snippets/indentation.py b/extra_tests/snippets/indentation.py similarity index 100% rename from tests/snippets/indentation.py rename to extra_tests/snippets/indentation.py diff --git a/tests/snippets/index_overflow.py b/extra_tests/snippets/index_overflow.py similarity index 100% rename from tests/snippets/index_overflow.py rename to extra_tests/snippets/index_overflow.py diff --git a/tests/snippets/inplace_ops.py b/extra_tests/snippets/inplace_ops.py similarity index 100% rename from tests/snippets/inplace_ops.py rename to extra_tests/snippets/inplace_ops.py diff --git a/tests/snippets/int_float_comparisons.py b/extra_tests/snippets/int_float_comparisons.py similarity index 100% rename from tests/snippets/int_float_comparisons.py rename to extra_tests/snippets/int_float_comparisons.py diff --git a/tests/snippets/intro/3.1.1.1.py b/extra_tests/snippets/intro/3.1.1.1.py similarity index 100% rename from tests/snippets/intro/3.1.1.1.py rename to extra_tests/snippets/intro/3.1.1.1.py diff --git a/tests/snippets/intro/3.1.1.2.py b/extra_tests/snippets/intro/3.1.1.2.py similarity index 100% rename from tests/snippets/intro/3.1.1.2.py rename to extra_tests/snippets/intro/3.1.1.2.py diff --git a/tests/snippets/intro/3.1.1.3.py b/extra_tests/snippets/intro/3.1.1.3.py similarity index 100% rename from tests/snippets/intro/3.1.1.3.py rename to extra_tests/snippets/intro/3.1.1.3.py diff --git a/tests/snippets/intro/3.1.1.4.py b/extra_tests/snippets/intro/3.1.1.4.py similarity index 100% rename from tests/snippets/intro/3.1.1.4.py rename to extra_tests/snippets/intro/3.1.1.4.py diff --git a/tests/snippets/intro/3.1.1.6.py b/extra_tests/snippets/intro/3.1.1.6.py similarity index 100% rename from tests/snippets/intro/3.1.1.6.py rename to extra_tests/snippets/intro/3.1.1.6.py diff --git a/tests/snippets/intro/3.1.2.1.py b/extra_tests/snippets/intro/3.1.2.1.py similarity index 100% rename from tests/snippets/intro/3.1.2.1.py rename to extra_tests/snippets/intro/3.1.2.1.py diff --git a/tests/snippets/intro/3.1.2.10.py b/extra_tests/snippets/intro/3.1.2.10.py similarity index 100% rename from tests/snippets/intro/3.1.2.10.py rename to extra_tests/snippets/intro/3.1.2.10.py diff --git a/tests/snippets/intro/3.1.2.3.py b/extra_tests/snippets/intro/3.1.2.3.py similarity index 100% rename from tests/snippets/intro/3.1.2.3.py rename to extra_tests/snippets/intro/3.1.2.3.py diff --git a/tests/snippets/intro/3.1.2.4.py b/extra_tests/snippets/intro/3.1.2.4.py similarity index 100% rename from tests/snippets/intro/3.1.2.4.py rename to extra_tests/snippets/intro/3.1.2.4.py diff --git a/tests/snippets/intro/3.1.2.5.py b/extra_tests/snippets/intro/3.1.2.5.py similarity index 100% rename from tests/snippets/intro/3.1.2.5.py rename to extra_tests/snippets/intro/3.1.2.5.py diff --git a/tests/snippets/intro/3.1.2.6.py b/extra_tests/snippets/intro/3.1.2.6.py similarity index 100% rename from tests/snippets/intro/3.1.2.6.py rename to extra_tests/snippets/intro/3.1.2.6.py diff --git a/tests/snippets/ints.py b/extra_tests/snippets/ints.py similarity index 100% rename from tests/snippets/ints.py rename to extra_tests/snippets/ints.py diff --git a/tests/snippets/invalid_syntax.py b/extra_tests/snippets/invalid_syntax.py similarity index 100% rename from tests/snippets/invalid_syntax.py rename to extra_tests/snippets/invalid_syntax.py diff --git a/tests/snippets/isinstance.py b/extra_tests/snippets/isinstance.py similarity index 100% rename from tests/snippets/isinstance.py rename to extra_tests/snippets/isinstance.py diff --git a/tests/snippets/issubclass.py b/extra_tests/snippets/issubclass.py similarity index 100% rename from tests/snippets/issubclass.py rename to extra_tests/snippets/issubclass.py diff --git a/tests/snippets/iterable.py b/extra_tests/snippets/iterable.py similarity index 100% rename from tests/snippets/iterable.py rename to extra_tests/snippets/iterable.py diff --git a/tests/snippets/iterations.py b/extra_tests/snippets/iterations.py similarity index 100% rename from tests/snippets/iterations.py rename to extra_tests/snippets/iterations.py diff --git a/tests/snippets/jit.py b/extra_tests/snippets/jit.py similarity index 100% rename from tests/snippets/jit.py rename to extra_tests/snippets/jit.py diff --git a/tests/snippets/json_snippet.py b/extra_tests/snippets/json_snippet.py similarity index 100% rename from tests/snippets/json_snippet.py rename to extra_tests/snippets/json_snippet.py diff --git a/tests/snippets/list.py b/extra_tests/snippets/list.py similarity index 100% rename from tests/snippets/list.py rename to extra_tests/snippets/list.py diff --git a/tests/snippets/literals.py b/extra_tests/snippets/literals.py similarity index 100% rename from tests/snippets/literals.py rename to extra_tests/snippets/literals.py diff --git a/tests/snippets/loop.py b/extra_tests/snippets/loop.py similarity index 100% rename from tests/snippets/loop.py rename to extra_tests/snippets/loop.py diff --git a/tests/snippets/mappingproxy.py b/extra_tests/snippets/mappingproxy.py similarity index 100% rename from tests/snippets/mappingproxy.py rename to extra_tests/snippets/mappingproxy.py diff --git a/tests/snippets/math_basics.py b/extra_tests/snippets/math_basics.py similarity index 100% rename from tests/snippets/math_basics.py rename to extra_tests/snippets/math_basics.py diff --git a/tests/snippets/membership.py b/extra_tests/snippets/membership.py similarity index 100% rename from tests/snippets/membership.py rename to extra_tests/snippets/membership.py diff --git a/tests/snippets/memoryview.py b/extra_tests/snippets/memoryview.py similarity index 100% rename from tests/snippets/memoryview.py rename to extra_tests/snippets/memoryview.py diff --git a/tests/snippets/metaclasses.py b/extra_tests/snippets/metaclasses.py similarity index 100% rename from tests/snippets/metaclasses.py rename to extra_tests/snippets/metaclasses.py diff --git a/tests/snippets/minimum.py b/extra_tests/snippets/minimum.py similarity index 100% rename from tests/snippets/minimum.py rename to extra_tests/snippets/minimum.py diff --git a/tests/snippets/module.py b/extra_tests/snippets/module.py similarity index 100% rename from tests/snippets/module.py rename to extra_tests/snippets/module.py diff --git a/tests/snippets/mro.py b/extra_tests/snippets/mro.py similarity index 100% rename from tests/snippets/mro.py rename to extra_tests/snippets/mro.py diff --git a/tests/snippets/name.py b/extra_tests/snippets/name.py similarity index 100% rename from tests/snippets/name.py rename to extra_tests/snippets/name.py diff --git a/tests/snippets/none.py b/extra_tests/snippets/none.py similarity index 100% rename from tests/snippets/none.py rename to extra_tests/snippets/none.py diff --git a/tests/snippets/numbers.py b/extra_tests/snippets/numbers.py similarity index 100% rename from tests/snippets/numbers.py rename to extra_tests/snippets/numbers.py diff --git a/tests/snippets/object.py b/extra_tests/snippets/object.py similarity index 100% rename from tests/snippets/object.py rename to extra_tests/snippets/object.py diff --git a/tests/snippets/os_info.py b/extra_tests/snippets/os_info.py similarity index 100% rename from tests/snippets/os_info.py rename to extra_tests/snippets/os_info.py diff --git a/tests/snippets/printing.py b/extra_tests/snippets/printing.py similarity index 100% rename from tests/snippets/printing.py rename to extra_tests/snippets/printing.py diff --git a/tests/snippets/property.py b/extra_tests/snippets/property.py similarity index 100% rename from tests/snippets/property.py rename to extra_tests/snippets/property.py diff --git a/tests/snippets/set.py b/extra_tests/snippets/set.py similarity index 100% rename from tests/snippets/set.py rename to extra_tests/snippets/set.py diff --git a/tests/snippets/short_circuit_evaluations.py b/extra_tests/snippets/short_circuit_evaluations.py similarity index 100% rename from tests/snippets/short_circuit_evaluations.py rename to extra_tests/snippets/short_circuit_evaluations.py diff --git a/tests/snippets/slice.py b/extra_tests/snippets/slice.py similarity index 100% rename from tests/snippets/slice.py rename to extra_tests/snippets/slice.py diff --git a/tests/snippets/statements.py b/extra_tests/snippets/statements.py similarity index 100% rename from tests/snippets/statements.py rename to extra_tests/snippets/statements.py diff --git a/tests/snippets/stdlib_abc.py b/extra_tests/snippets/stdlib_abc.py similarity index 100% rename from tests/snippets/stdlib_abc.py rename to extra_tests/snippets/stdlib_abc.py diff --git a/tests/snippets/stdlib_array.py b/extra_tests/snippets/stdlib_array.py similarity index 100% rename from tests/snippets/stdlib_array.py rename to extra_tests/snippets/stdlib_array.py diff --git a/tests/snippets/stdlib_binascii.py b/extra_tests/snippets/stdlib_binascii.py similarity index 100% rename from tests/snippets/stdlib_binascii.py rename to extra_tests/snippets/stdlib_binascii.py diff --git a/tests/snippets/stdlib_collections.py b/extra_tests/snippets/stdlib_collections.py similarity index 100% rename from tests/snippets/stdlib_collections.py rename to extra_tests/snippets/stdlib_collections.py diff --git a/tests/snippets/stdlib_csv.py b/extra_tests/snippets/stdlib_csv.py similarity index 100% rename from tests/snippets/stdlib_csv.py rename to extra_tests/snippets/stdlib_csv.py diff --git a/tests/snippets/stdlib_datetime.py b/extra_tests/snippets/stdlib_datetime.py similarity index 100% rename from tests/snippets/stdlib_datetime.py rename to extra_tests/snippets/stdlib_datetime.py diff --git a/tests/snippets/stdlib_functools.py b/extra_tests/snippets/stdlib_functools.py similarity index 100% rename from tests/snippets/stdlib_functools.py rename to extra_tests/snippets/stdlib_functools.py diff --git a/tests/snippets/stdlib_hashlib.py b/extra_tests/snippets/stdlib_hashlib.py similarity index 100% rename from tests/snippets/stdlib_hashlib.py rename to extra_tests/snippets/stdlib_hashlib.py diff --git a/tests/snippets/stdlib_imghdr.py b/extra_tests/snippets/stdlib_imghdr.py similarity index 100% rename from tests/snippets/stdlib_imghdr.py rename to extra_tests/snippets/stdlib_imghdr.py diff --git a/tests/snippets/stdlib_io.py b/extra_tests/snippets/stdlib_io.py similarity index 100% rename from tests/snippets/stdlib_io.py rename to extra_tests/snippets/stdlib_io.py diff --git a/tests/snippets/stdlib_io_bytesio.py b/extra_tests/snippets/stdlib_io_bytesio.py similarity index 100% rename from tests/snippets/stdlib_io_bytesio.py rename to extra_tests/snippets/stdlib_io_bytesio.py diff --git a/tests/snippets/stdlib_io_stringio.py b/extra_tests/snippets/stdlib_io_stringio.py similarity index 100% rename from tests/snippets/stdlib_io_stringio.py rename to extra_tests/snippets/stdlib_io_stringio.py diff --git a/tests/snippets/stdlib_itertools.py b/extra_tests/snippets/stdlib_itertools.py similarity index 100% rename from tests/snippets/stdlib_itertools.py rename to extra_tests/snippets/stdlib_itertools.py diff --git a/tests/snippets/stdlib_logging.py b/extra_tests/snippets/stdlib_logging.py similarity index 100% rename from tests/snippets/stdlib_logging.py rename to extra_tests/snippets/stdlib_logging.py diff --git a/tests/snippets/stdlib_marshal.py b/extra_tests/snippets/stdlib_marshal.py similarity index 100% rename from tests/snippets/stdlib_marshal.py rename to extra_tests/snippets/stdlib_marshal.py diff --git a/tests/snippets/stdlib_math.py b/extra_tests/snippets/stdlib_math.py similarity index 100% rename from tests/snippets/stdlib_math.py rename to extra_tests/snippets/stdlib_math.py diff --git a/tests/snippets/stdlib_operator.py b/extra_tests/snippets/stdlib_operator.py similarity index 100% rename from tests/snippets/stdlib_operator.py rename to extra_tests/snippets/stdlib_operator.py diff --git a/tests/snippets/stdlib_os.py b/extra_tests/snippets/stdlib_os.py similarity index 100% rename from tests/snippets/stdlib_os.py rename to extra_tests/snippets/stdlib_os.py diff --git a/tests/snippets/stdlib_random.py b/extra_tests/snippets/stdlib_random.py similarity index 100% rename from tests/snippets/stdlib_random.py rename to extra_tests/snippets/stdlib_random.py diff --git a/tests/snippets/stdlib_re.py b/extra_tests/snippets/stdlib_re.py similarity index 100% rename from tests/snippets/stdlib_re.py rename to extra_tests/snippets/stdlib_re.py diff --git a/tests/snippets/stdlib_select.py b/extra_tests/snippets/stdlib_select.py similarity index 100% rename from tests/snippets/stdlib_select.py rename to extra_tests/snippets/stdlib_select.py diff --git a/tests/snippets/stdlib_signal.py b/extra_tests/snippets/stdlib_signal.py similarity index 100% rename from tests/snippets/stdlib_signal.py rename to extra_tests/snippets/stdlib_signal.py diff --git a/tests/snippets/stdlib_socket.py b/extra_tests/snippets/stdlib_socket.py similarity index 100% rename from tests/snippets/stdlib_socket.py rename to extra_tests/snippets/stdlib_socket.py diff --git a/tests/snippets/stdlib_string.py b/extra_tests/snippets/stdlib_string.py similarity index 100% rename from tests/snippets/stdlib_string.py rename to extra_tests/snippets/stdlib_string.py diff --git a/tests/snippets/stdlib_struct.py b/extra_tests/snippets/stdlib_struct.py similarity index 100% rename from tests/snippets/stdlib_struct.py rename to extra_tests/snippets/stdlib_struct.py diff --git a/tests/snippets/stdlib_subprocess.py b/extra_tests/snippets/stdlib_subprocess.py similarity index 100% rename from tests/snippets/stdlib_subprocess.py rename to extra_tests/snippets/stdlib_subprocess.py diff --git a/tests/snippets/stdlib_sys.py b/extra_tests/snippets/stdlib_sys.py similarity index 100% rename from tests/snippets/stdlib_sys.py rename to extra_tests/snippets/stdlib_sys.py diff --git a/tests/snippets/stdlib_time.py b/extra_tests/snippets/stdlib_time.py similarity index 100% rename from tests/snippets/stdlib_time.py rename to extra_tests/snippets/stdlib_time.py diff --git a/tests/snippets/stdlib_traceback.py b/extra_tests/snippets/stdlib_traceback.py similarity index 100% rename from tests/snippets/stdlib_traceback.py rename to extra_tests/snippets/stdlib_traceback.py diff --git a/tests/snippets/stdlib_types.py b/extra_tests/snippets/stdlib_types.py similarity index 100% rename from tests/snippets/stdlib_types.py rename to extra_tests/snippets/stdlib_types.py diff --git a/tests/snippets/stdlib_xdrlib.py b/extra_tests/snippets/stdlib_xdrlib.py similarity index 100% rename from tests/snippets/stdlib_xdrlib.py rename to extra_tests/snippets/stdlib_xdrlib.py diff --git a/tests/snippets/stdlib_zlib.py b/extra_tests/snippets/stdlib_zlib.py similarity index 100% rename from tests/snippets/stdlib_zlib.py rename to extra_tests/snippets/stdlib_zlib.py diff --git a/tests/snippets/strings.py b/extra_tests/snippets/strings.py similarity index 100% rename from tests/snippets/strings.py rename to extra_tests/snippets/strings.py diff --git a/tests/snippets/subclass_str.py b/extra_tests/snippets/subclass_str.py similarity index 100% rename from tests/snippets/subclass_str.py rename to extra_tests/snippets/subclass_str.py diff --git a/tests/snippets/test_threading.py b/extra_tests/snippets/test_threading.py similarity index 100% rename from tests/snippets/test_threading.py rename to extra_tests/snippets/test_threading.py diff --git a/tests/snippets/test_warnings.py b/extra_tests/snippets/test_warnings.py similarity index 100% rename from tests/snippets/test_warnings.py rename to extra_tests/snippets/test_warnings.py diff --git a/tests/snippets/testutils.py b/extra_tests/snippets/testutils.py similarity index 100% rename from tests/snippets/testutils.py rename to extra_tests/snippets/testutils.py diff --git a/tests/snippets/try_exceptions.py b/extra_tests/snippets/try_exceptions.py similarity index 100% rename from tests/snippets/try_exceptions.py rename to extra_tests/snippets/try_exceptions.py diff --git a/tests/snippets/tuple.py b/extra_tests/snippets/tuple.py similarity index 100% rename from tests/snippets/tuple.py rename to extra_tests/snippets/tuple.py diff --git a/tests/snippets/type_hints.py b/extra_tests/snippets/type_hints.py similarity index 100% rename from tests/snippets/type_hints.py rename to extra_tests/snippets/type_hints.py diff --git a/tests/snippets/types_snippet.py b/extra_tests/snippets/types_snippet.py similarity index 100% rename from tests/snippets/types_snippet.py rename to extra_tests/snippets/types_snippet.py diff --git a/tests/snippets/unicode_fu.py b/extra_tests/snippets/unicode_fu.py similarity index 100% rename from tests/snippets/unicode_fu.py rename to extra_tests/snippets/unicode_fu.py diff --git a/tests/snippets/unicode_slicing.py b/extra_tests/snippets/unicode_slicing.py similarity index 100% rename from tests/snippets/unicode_slicing.py rename to extra_tests/snippets/unicode_slicing.py diff --git a/tests/snippets/variables.py b/extra_tests/snippets/variables.py similarity index 100% rename from tests/snippets/variables.py rename to extra_tests/snippets/variables.py diff --git a/tests/snippets/weakrefs.py b/extra_tests/snippets/weakrefs.py similarity index 100% rename from tests/snippets/weakrefs.py rename to extra_tests/snippets/weakrefs.py diff --git a/tests/snippets/with.py b/extra_tests/snippets/with.py similarity index 100% rename from tests/snippets/with.py rename to extra_tests/snippets/with.py diff --git a/tests/snippets/xfail_assert.py b/extra_tests/snippets/xfail_assert.py similarity index 100% rename from tests/snippets/xfail_assert.py rename to extra_tests/snippets/xfail_assert.py diff --git a/tests/test_snippets.py b/extra_tests/test_snippets.py similarity index 98% rename from tests/test_snippets.py rename to extra_tests/test_snippets.py index f5028d67c..c3bdea7c4 100644 --- a/tests/test_snippets.py +++ b/extra_tests/test_snippets.py @@ -20,7 +20,7 @@ class _TestType(enum.Enum): logger = logging.getLogger("tests") ROOT_DIR = ".." -TEST_ROOT = os.path.abspath(os.path.join(ROOT_DIR, "tests")) +TEST_ROOT = os.path.abspath(os.path.join(ROOT_DIR, "extra_tests")) TEST_DIRS = {_TestType.functional: os.path.join(TEST_ROOT, "snippets")} CPYTHON_RUNNER_DIR = os.path.abspath(os.path.join(ROOT_DIR, "py_code_object")) RUSTPYTHON_RUNNER_DIR = os.path.abspath(os.path.join(ROOT_DIR)) diff --git a/pdc.sh b/pdc.sh index 574e9af42..9fbe445d4 100755 --- a/pdc.sh +++ b/pdc.sh @@ -23,7 +23,7 @@ PRE_ACT=() # Postprocessing steps run after each action is executed POST_ACT=() -ACTIONS=("cargo build" "cargo build --release" "cargo fmt --all" "cargo clippy --all -- -Dwarnings" "cargo test --all" "cargo run --release -- -m test -v" "cd tests" "pytest" "cd ..") +ACTIONS=("cargo build" "cargo build --release" "cargo fmt --all" "cargo clippy --all -- -Dwarnings" "cargo test --all" "cargo run --release -- -m test -v" "cd extra_tests" "pytest" "cd ..") # Usually, there should be no need to adapt the remaining file, when adding or removing actions. diff --git a/src/main.rs b/src/main.rs index dda81e9e2..53503743a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -499,11 +499,15 @@ fn test_run_script() { let r = run_script( &vm, vm.new_scope_with_builtins(), - "tests/snippets/dir_main/__main__.py", + "extra_tests/snippets/dir_main/__main__.py", ); assert!(r.is_ok()); // test module run - let r = run_script(&vm, vm.new_scope_with_builtins(), "tests/snippets/dir_main"); + let r = run_script( + &vm, + vm.new_scope_with_builtins(), + "extra_tests/snippets/dir_main", + ); assert!(r.is_ok()); } diff --git a/whats_left.sh b/whats_left.sh index 9be0e5d5c..90ee3ed92 100755 --- a/whats_left.sh +++ b/whats_left.sh @@ -18,7 +18,7 @@ cd "$(dirname "$0")" export RUSTPYTHONPATH=Lib ( - cd tests + cd extra_tests # -I means isolate from environment; we don't want any pip packages to be listed python3 -I not_impl_gen.py ) @@ -35,7 +35,7 @@ fi for section in "${sections[@]}"; do section=$(echo "$section" | tr "[:upper:]" "[:lower:]") - snippet=tests/snippets/whats_left_$section.py + snippet=extra_tests/snippets/whats_left_$section.py if ! [[ -f $snippet ]]; then echo "Invalid section $section" >&2 continue