On Thu Jun 11, 2026 at 4:06 AM CEST, Shilong via lists.openembedded.org Jiao 
wrote:
> Hi Mathieu,
>
> Thanks for testing and confirming the issue.
>
> I've investigated the test failures. The problem is that test_lazy()
> requires html.parser to not be in sys.modules, but when test_move_items()
> runs first (which happens in pytest's alphabetical order), it imports
> these modules, causing test_lazy() and the related test_move_items
> parametrized tests to fail.
>
> This appears to be a test order dependency issue in six's test suite
> itself, not specific to Yocto.
>
> I have two options to fix this:
>
> 1. Patch six's test_six.py to clean up module state before test_lazy runs
>    (but this modifies upstream test code)
>
> 2. Skip these problematic tests in run-ptest for now
>    (cleaner for Yocto, but reduces test coverage)
>
> Which approach would you prefer? Or do you have other suggestions?

I believe the best solution would be something like 1. , but submitting
the changes upstream, as it looks like we won't be the only one it might
help.

Thanks,
Mathieu

-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#238420): 
https://lists.openembedded.org/g/openembedded-core/message/238420
Mute This Topic: https://lists.openembedded.org/mt/119716979/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to