micropython/tests/cpydiff
Jeff Epler 5ddc551bc4 py/compile: Reject *arg after keyword argument.
Document this in cpydiff and add a test with expected output
for coverage testing.

As discussed in #11441, the code growth from handling this
case seems to outweigh the benefit of implementing it
properly.

Closes: #11439

Signed-off-by: Jeff Epler <jepler@unpythonic.net>
2026-04-15 15:40:15 +10:00
..
modules tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
modules2/subpkg tests/cpydiff/core_import_split_ns_pkgs: Test for split namespace packages. 2017-05-03 17:16:19 +03:00
core_class_delnotimpl.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
core_class_initsubclass_autoclassmethod.py tests/cpydiff: Test for PEP487 __init_subclass__. 2025-09-11 11:49:12 +10:00
core_class_initsubclass_kwargs.py tests/cpydiff: Test for PEP487 __init_subclass__. 2025-09-11 11:49:12 +10:00
core_class_initsubclass_super.py tests/cpydiff: Test for PEP487 __init_subclass__. 2025-09-11 11:49:12 +10:00
core_class_initsubclass.py tests/cpydiff: Test for PEP487 __init_subclass__. 2025-09-11 11:49:12 +10:00
core_class_mro.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
core_class_name_mangling.py tests/cpydiff: Add new CPy diff test for class name mangling. 2024-02-21 11:42:35 +11:00
core_class_super_init.py tests/cpydiff: Add diff for overriding __init__. 2024-07-25 12:01:43 +10:00
core_class_supermultiple.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
core_class_superproperty.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
core_exception_construction.py tests/cpydiff: Add a section for throwing incomplete exceptions. 2026-02-26 16:15:54 +11:00
core_fstring_concat.py tests/cpydiff: Ensure all have two levels of category. 2025-05-16 11:52:03 +10:00
core_fstring_parser.py all: Go back to using default ruff quote style. 2025-07-24 12:48:18 +10:00
core_fstring_repr.py tests/cpydiff: Ensure all have two levels of category. 2025-05-16 11:52:03 +10:00
core_function_argcount.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
core_function_moduleattr.py tests/cpydiff: Add test and workaround for function.__module__ attr. 2021-05-16 11:06:46 +10:00
core_function_star.py py/compile: Reject *arg after keyword argument. 2026-04-15 15:40:15 +10:00
core_function_userattr.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
core_generator_noexit.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
core_import_path.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
core_import_split_ns_pkgs.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
core_locals_eval.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
core_locals.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
module_array_comparison.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
module_array_constructor.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
modules_array_containment.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
modules_array_deletion.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
modules_array_subscrstep.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
modules_errno_enotsup.py tests/cpydiff: Document ENOTSUP vs EOPNOTSUPP. 2025-09-11 11:21:14 +10:00
modules_json_nonserializable.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
modules_os_environ.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
modules_os_getenv.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
modules_random_getrandbits.py extmod/modurandom: Add error message when getrandbits has bad value. 2021-05-30 16:41:30 +10:00
modules_random_randint.py all: Update Python formatting to latest Black version 22.1.0. 2022-02-02 16:49:55 +11:00
modules_struct_fewargs.py all: Replace legacy name with MicroPython and MPy as applicable. 2025-10-04 00:19:40 +10:00
modules_struct_manyargs.py all: Replace legacy name with MicroPython and MPy as applicable. 2025-10-04 00:19:40 +10:00
modules_struct_whitespace_in_format.py all: Replace legacy name with MicroPython and MPy as applicable. 2025-10-04 00:19:40 +10:00
modules_sys_stdassign.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
syntax_annotation_expression.py tests/cpydiff: Add test file for annotation expressions. 2026-04-07 14:45:09 +10:00
syntax_arg_unpacking.py tests/cpydiff: Ensure all have two levels of category. 2025-05-16 11:52:03 +10:00
syntax_assign_expr.py tests/cpydiff: Update CPy diff for assign expr in nested comprehensions. 2025-04-07 15:43:03 +10:00
syntax_literal_underscore.py tests/cpydiff: Add test of underscore-in-literals. 2025-05-16 11:52:03 +10:00
syntax_spaces.py tests/cpydiff: Ensure all have two levels of category. 2025-05-16 11:52:03 +10:00
syntax_unicode_nameesc.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
types_bytearray_sliceassign.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
types_bytes_format.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
types_bytes_keywords.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
types_bytes_subscrstep.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
types_complex_parser.py tests/cpydiff: Document complex() parsing difference. 2025-06-16 23:34:34 +10:00
types_dict_keys_set.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
types_exception_attrs.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
types_exception_chaining.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
types_exception_instancevar.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
types_exception_loops.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
types_exception_subclassinit.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
types_float_implicit_conversion.py all: Replace legacy name with MicroPython and MPy as applicable. 2025-10-04 00:19:40 +10:00
types_int_bit_length.py extmod/modurandom: Add error message when getrandbits has bad value. 2021-05-30 16:41:30 +10:00
types_int_subclassconv.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
types_int_to_bytes.py py/objint: Fix int.to_bytes() buffer size checks. 2024-06-24 14:07:00 +10:00
types_list_delete_subscrstep.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
types_list_store_noniter.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
types_list_store_subscrstep.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
types_memoryview_invalid.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
types_oserror_errnomap.py tests/cpydiff: Document lack of OSError errno subtype mapping. 2025-09-11 11:18:43 +10:00
types_range_limits.py tests: Test extremes of range() and document differences to CPython. 2025-09-26 13:34:55 +10:00
types_str_formatsep_float.py tests/cpydiff: Document unsupported float format with grouping char. 2025-10-06 15:11:04 +11:00
types_str_formatsep.py tests/cpydiff: Document format separator difference. 2025-05-13 12:19:46 +10:00
types_str_formatsubscr.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
types_str_keywords.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
types_str_ljust_rjust.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
types_str_rsplitnone.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
types_str_subscrstep.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00
types_tuple_subscrstep.py all: Upgrade to ruff v0.9.6. 2025-02-25 13:02:49 +01:00