Skip to content

Failed 'tests/misc/sys_settrace_features.py' #6689

@gvanem

Description

@gvanem

I've built MicroPython on Windows and notice some failures due to mixed expectation of / vs \ in filenames.
The diff between:

  • tests\results\misc_sys_settrace_features.py.exp and
  • tests\results\misc_sys_settrace_features.py.out

contains a lot of lines like these:

--- tests/results/misc_sys_settrace_features.py.exp 2020-12-10 13:21:13
+++ tests/results/misc_sys_settrace_features.py.out 2020-12-10 13:21:13
@@ -101,730 +101,730 @@
  0:   @__main__:do_tests => miscmisc/sys_settrace_features.py:97
  1:   @__main__:<module> => miscmisc/sys_settrace_features.py:104
 ### trace_handler::main event: call
- 0:   @sys_settrace_subdir.trace_generic:<module> => miscF:\MingW32\src\Languages\MicroPython\tests\misc\sys_settrace_subdir\trace_generic.py:1
+ 0:   @sys_settrace_subdir.trace_generic:<module> => misc/sys_settrace_subdir/trace_generic.py:1
  1:   @__main__:do_tests => miscmisc/sys_settrace_features.py:97
  2:   @__main__:<module> => miscmisc/sys_settrace_features.py:104

The line responsible for this difference is AFAICS in tests\misc\sys_settrace_features.py:
"misc" + "".join(frame.f_code.co_filename.split("tests/misc")[-1:]),

Where is the cause of these diffs? And how is the .exp file generated?

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsRelates to tests/ directory in source

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy