Files
esp-idf/tools
Frantisek Hrbata 7bc635bd9e fix(test_build_system): add __init__.py to buildv2 test directory
Pytest's default import mode (prepend/rootdir) imports test modules as
top-level modules keyed by filename. When two directories contain test
files with the same basename (e.g. test_sdkconfig.py in both
test_build_system/ and test_build_system/buildv2/), pytest tries to
register both as the module name "test_sdkconfig". The second collection
fails with "import file mismatch" because the module object already
cached in sys.modules points to the first file.

Adding __init__.py to the buildv2/ directory makes it a proper Python
package. Pytest then imports its test modules under the package
namespace (buildv2.test_sdkconfig), which is distinct from the
top-level test_sdkconfig, resolving the collision.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2026-02-18 17:29:18 +08:00
..
2025-09-26 10:25:25 +08:00
2025-09-30 15:28:55 +02:00
2025-09-30 15:28:55 +02:00
2025-06-03 08:37:56 +02:00
2025-06-03 08:37:56 +02:00
2025-06-03 08:37:56 +02:00
2025-06-03 08:37:56 +02:00
2025-08-01 08:05:10 +02:00
2025-08-01 08:05:10 +02:00
2025-09-30 15:28:55 +02:00
2025-09-30 15:28:55 +02:00