Hi, Thanks for the feedback. I agree that submitting to six upstream is the right approach. I've prepared a patch (attached) that fixes the test order dependency issue.
However, I don't currently have a GitHub account. Would it be acceptable to include this patch in Yocto with "Upstream-Status: Pending" for now, while I work on setting up an account to submit it upstream? The patch is ready and tested - it just needs to be submitted to: https://github.com/benjaminp/six Thanks, Shilong ________________________________ From: Mathieu Dubois-Briand <[email protected]> Sent: Thursday, June 11, 2026 13:18 To: Jiao, Shilong <[email protected]>; [email protected] <[email protected]> Subject: Re: [OE-core] [PATCH] python3-six: Add ptest support CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. 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 (#238424): https://lists.openembedded.org/g/openembedded-core/message/238424 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]] -=-=-=-=-=-=-=-=-=-=-=-
