Created attachment 684399 [details] build.log Same on 3.9.0-r1. [...] ====================================================================== FAIL: test_extra_groups (test.test_subprocess.POSIXProcessTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-lang/python-3.9.1-r1/work/Python-3.9.1/Lib/test/test_subprocess.py", line 1922, in test_extra_groups self.assertEqual(set(desired_gids), set(child_groups)) AssertionError: Items in the first set but not the second: 65533 65534 Items in the second set but not the first: 2723208816 ---------------------------------------------------------------------- Ran 314 tests in 184.151s FAILED (failures=1, skipped=34) test test_subprocess failed 1 test failed again: test_subprocess == Tests result: FAILURE then FAILURE == 402 tests OK. 1 test failed: test_subprocess 21 tests skipped: test_curses test_devpoll test_ioctl test_kqueue test_msilib test_nis test_ossaudiodev test_smtpnet test_socketserver test_startfile test_timeout test_tix test_tk test_ttk_guionly test_urllib2net test_urllibnet test_winconsoleio test_winreg test_winsound test_xmlrpc_net test_zipfile64 1 re-run test: test_subprocess Total duration: 7 min 15 sec Tests result: FAILURE then FAILURE make: *** [Makefile:1198: test] Error 2
Created attachment 684402 [details] emerge --info
This looks to be specific to ppc64, and I don't think I can help there much. I don't see an upstream bug about this. Could you start by getting a git checkout of CPython (https://github.com/python/cpython/) and trying to run tests there? Roughly: ./configure -C make -j$(nproc) make test If you could try 3.9 branch and master that would be helpful too.
Upstream cython v3.9.1 fails with: [...] ====================================================================== FAIL: test_extra_groups (test.test_subprocess.POSIXProcessTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/build/cpython/Lib/test/test_subprocess.py", line 1922, in test_extra_groups self.assertEqual(set(desired_gids), set(child_groups)) AssertionError: Items in the first set but not the second: 65533 65534 Items in the second set but not the first: 3101468880 ---------------------------------------------------------------------- Ran 314 tests in 53.932s FAILED (failures=1, skipped=32) test test_subprocess failed 2 tests failed again: test_nntplib test_subprocess == Tests result: FAILURE then FAILURE == 410 tests OK. 2 tests failed: test_nntplib test_subprocess 13 tests skipped: test_devpoll test_ioctl test_kqueue test_msilib test_ossaudiodev test_startfile test_tix test_tk test_ttk_guionly test_winconsoleio test_winreg test_winsound test_zipfile64 2 re-run tests: test_nntplib test_subprocess Total duration: 5 min 22 sec Tests result: FAILURE then FAILURE
Upstream cython master passes tests: [...] == Tests result: SUCCESS == 413 tests OK. 13 tests skipped: test_devpoll test_ioctl test_kqueue test_msilib test_ossaudiodev test_startfile test_tix test_tk test_ttk_guionly test_winconsoleio test_winreg test_winsound test_zipfile64 Total duration: 4 min 5 sec Tests result: SUCCESS
I was hoping I'd be able to help you but I can't reproduce on the Gentoo ppc64 build host. Could you also try the top of '3.9' branch? You should be able to run that one test via: ./python ./Tools/scripts/run_tests.py test_subprocess (also would be nice to confirm that it happens when running it alone via that command)
single test still fails on 'v3.9.1' but it passes on '3.9' (895591c1f0): [...] Using random seed 982950 0:00:00 load avg: 0.51 Run tests in parallel using 34 child processes 0:00:30 load avg: 0.57 running: test_subprocess (30.0 sec) 0:00:51 load avg: 0.65 [1/1] test_subprocess passed (51.8 sec) /root/build/cpython/Lib/subprocess.py:1052: ResourceWarning: subprocess 407282 is still running _warn("subprocess %s is still running" % self.pid, ResourceWarning: Enable tracemalloc to get the object allocation traceback == Tests result: SUCCESS == 1 test OK. Total duration: 52.0 sec Tests result: SUCCESS
Well, in that case we can either wait for the next upstream release, or you could try using 'git bisect' to find out which commit fixed it.
python-3.9.2 passes tests on ppc64. [...] == Tests result: SUCCESS == 403 tests OK. 21 tests skipped: test_curses test_devpoll test_ioctl test_kqueue test_msilib test_nis test_ossaudiodev test_smtpnet test_socketserver test_startfile test_timeout test_tix test_tk test_ttk_guionly test_urllib2net test_urllibnet test_winconsoleio test_winreg test_winsound test_xmlrpc_net test_zipfile64 Total duration: 3 min 32 sec Tests result: SUCCESS * The following tests have been skipped: * test_gdb.py * If you would like to run them, you may: * cd '/usr/lib/python3.9/test' * and run the tests separately. >>> Completed testing dev-lang/python-3.9.2
Obsolete, as python-3.9.2 has been stabled (bug #770853).