Reproduces on sparc, ppc64 big-endian. Does not repo on ppc64 little-endian, so marking as pure endianness problem. AIL: test_open_text (importlib_resources.tests.test_functional.FunctionalAPITest_ModuleAnchor.test_open_text) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-python/importlib-resources-6.4.0/work/importlib_resources-6.4.0/importlib_resources/tests/test_functional.py", line 131, in test_open_text self.assertEqual( AssertionError: '\\xff\\xfeH\x00e\x00l\x00l\x00o\x00,\x00 \x00[67 chars]\x00' != '\\xfe\\xff\x00H\x00e\x00l\x00l\x00o\x00,\x00 [67 chars]00\n' - \xff\xfeH^@e^@l^@l^@o^@,^@ ^@U^@T^@F^@-^@1^@6^@ ^@w^@o^@r^@l^@d^@!^@ ? ^^^^ + \xfe\xff^@H^@e^@l^@l^@o^@,^@ ^@U^@T^@F^@-^@1^@6^@ ^@w^@o^@r^@l^@d^@!^@ ? ++++ ^ - ^@ ====================================================================== FAIL: test_read_text (importlib_resources.tests.test_functional.FunctionalAPITest_ModuleAnchor.test_read_text) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-python/importlib-resources-6.4.0/work/importlib_resources-6.4.0/importlib_resources/tests/test_functional.py", line 79, in test_read_text self.assertEqual( AssertionError: '\\xff\\xfeH\x00e\x00l\x00l\x00o\x00,\x00 \x00[67 chars]\x00' != '\\xfe\\xff\x00H\x00e\x00l\x00l\x00o\x00,\x00 [67 chars]00\n' - \xff\xfeH^@e^@l^@l^@o^@,^@ ^@U^@T^@F^@-^@1^@6^@ ^@w^@o^@r^@l^@d^@!^@ ? ^^^^ + \xfe\xff^@H^@e^@l^@l^@o^@,^@ ^@U^@T^@F^@-^@1^@6^@ ^@w^@o^@r^@l^@d^@!^@ ? ++++ ^ - ^@ ====================================================================== FAIL: test_open_text (importlib_resources.tests.test_functional.FunctionalAPITest_StringAnchor.test_open_text) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-python/importlib-resources-6.4.0/work/importlib_resources-6.4.0/importlib_resources/tests/test_functional.py", line 131, in test_open_text self.assertEqual( AssertionError: '\\xff\\xfeH\x00e\x00l\x00l\x00o\x00,\x00 \x00[67 chars]\x00' != '\\xfe\\xff\x00H\x00e\x00l\x00l\x00o\x00,\x00 [67 chars]00\n' - \xff\xfeH^@e^@l^@l^@o^@,^@ ^@U^@T^@F^@-^@1^@6^@ ^@w^@o^@r^@l^@d^@!^@ ? ^^^^ + \xfe\xff^@H^@e^@l^@l^@o^@,^@ ^@U^@T^@F^@-^@1^@6^@ ^@w^@o^@r^@l^@d^@!^@ ? ++++ ^ - ^@ ====================================================================== FAIL: test_read_text (importlib_resources.tests.test_functional.FunctionalAPITest_StringAnchor.test_read_text) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-python/importlib-resources-6.4.0/work/importlib_resources-6.4.0/importlib_resources/tests/test_functional.py", line 79, in test_read_text self.assertEqual( AssertionError: '\\xff\\xfeH\x00e\x00l\x00l\x00o\x00,\x00 \x00[67 chars]\x00' != '\\xfe\\xff\x00H\x00e\x00l\x00l\x00o\x00,\x00 [67 chars]00\n' - \xff\xfeH^@e^@l^@l^@o^@,^@ ^@U^@T^@F^@-^@1^@6^@ ^@w^@o^@r^@l^@d^@!^@ ? ^^^^ + \xfe\xff^@H^@e^@l^@l^@o^@,^@ ^@U^@T^@F^@-^@1^@6^@ ^@w^@o^@r^@l^@d^@!^@ ? ++++ ^ - ^@ ---------------------------------------------------------------------- Ran 200 tests in 1.257s FAILED (failures=4, skipped=1)
Created attachment 897383 [details] build.log and emerge --info (sparc)
Created attachment 897384 [details] build.log and emerge --info (ppc64)
That's BOM. I'm going to check if tests inside CPython are also affected.
I see the problem, and the fix should be easy.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8239792739f7a1f227c950cdc92f8fefefc9e98f commit 8239792739f7a1f227c950cdc92f8fefefc9e98f Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2024-07-10 05:39:03 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2024-07-10 05:39:47 +0000 dev-python/importlib-resources: Fix tests on big endian Closes: https://bugs.gentoo.org/935804 Signed-off-by: Michał Górny <mgorny@gentoo.org> .../files/importlib-resources-6.4.0-be.patch | 40 ++++++++++++++++++++++ .../importlib-resources-6.4.0.ebuild | 5 +++ 2 files changed, 45 insertions(+)