micropython/tests/misc
Jim Mussared b2b5bcce28 py/profile: Remove the requirement to disable MICROPY_COMP_CONST.
The only reason that const had to be disabled was to make the test output
match CPython when const was involved.  Instead, this commit fixes the test
to handle the lines where const is used.

Also:
- remove the special handling for MICROPY_PERSISTENT_CODE_SAVE in
  unix/mpconfigport.h, and make this automatic.
- move the check for MICROPY_PERSISTENT_CODE_SAVE to where it's used (like
  we do for other similar checks) and add a comment explaining it.

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-08-30 10:58:04 +10:00
..
sys_settrace_subdir py/profile: Remove the requirement to disable MICROPY_COMP_CONST. 2023-08-30 10:58:04 +10:00
cexample_class.py tests/misc/cexample_class: Fix timing sensitivity. 2022-11-25 08:14:54 +01:00
cexample_class.py.exp tests/misc/cexample_class: Fix timing sensitivity. 2022-11-25 08:14:54 +01:00
cexample_module.py tests/misc/cexample_module: Test class presence. 2022-11-25 08:13:15 +01:00
cexample_module.py.exp tests/misc/cexample_module: Test class presence. 2022-11-25 08:13:15 +01:00
features.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
non_compliant.py tests: Replace umodule with module everywhere. 2023-06-08 17:54:24 +10:00
non_compliant.py.exp py/objtype: Optimise instance get/set/del by skipping special accessors. 2018-06-08 12:12:08 +10:00
non_compliant_lexer.py tests: Format all Python code with black, except tests in basics subdir. 2020-03-30 13:21:58 +11:00
non_compliant_lexer.py.exp py/lexer: Raise NotImplError for unicode name escape, instead of assert. 2015-09-07 17:08:49 +01:00
print_exception.py tests: Replace umodule with module everywhere. 2023-06-08 17:54:24 +10:00
rge_sm.py all: Update Python formatting to latest Black version 22.1.0. 2022-02-02 16:49:55 +11:00
sys_atexit.py tests: Replace umodule with module everywhere. 2023-06-08 17:54:24 +10:00
sys_atexit.py.exp tests/misc/sys_atexit: Add test for new sys.atexit feature. 2019-08-15 17:31:04 +10:00
sys_exc_info.py tests: Replace umodule with module everywhere. 2023-06-08 17:54:24 +10:00
sys_settrace_features.py py/profile: Remove the requirement to disable MICROPY_COMP_CONST. 2023-08-30 10:58:04 +10:00
sys_settrace_generator.py top: Update Python formatting to black "2023 stable style". 2023-02-02 12:51:03 +11:00
sys_settrace_generator.py.exp top: Update Python formatting to black "2023 stable style". 2023-02-02 12:51:03 +11:00
sys_settrace_loop.py tests/misc/sys_settrace: Make test output independent of invoked path. 2020-12-18 13:56:45 +11:00
sys_settrace_loop.py.exp tests/misc/sys_settrace: Make test output independent of invoked path. 2020-12-18 13:56:45 +11:00