summaryrefslogtreecommitdiff
path: root/shared/runtime/pyexec.c
diff options
context:
space:
mode:
authorAndrew Leech <andrew.leech@planetinnovation.com.au>2025-05-26 19:31:30 +1000
committerDamien George <damien@micropython.org>2025-11-22 00:06:59 +1100
commite067d96c8b71b3fe258583fd6cddb1094cb4efe5 (patch)
treed04978be6c7739c6987d6f40137191682a5b2baf /shared/runtime/pyexec.c
parent7ac8fcf752389e2af37b49994478bd9d93f48434 (diff)
tests/run-tests.py: Add general newline normalization function.
Add a general normalize_newlines() function that handles newline variations (\\r\\r\\n, \\r\\n) to \\n while preserving literal \\r characters that are part of test content. This provides a robust solution for cross-platform test compatibility, particularly addressing PTY double-newline issues that can occur with some terminal implementations. The function is applied to all test output before comparison, eliminating platform-specific newline issues. Includes a unit test to verify the normalization behavior. Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
Diffstat (limited to 'shared/runtime/pyexec.c')
0 files changed, 0 insertions, 0 deletions