Closed
Description
when i run chroot compile /home/abuild/rpmbuild/BUILD/Python-3.9.9/build/debug/python -m test.regrtest test_mailbox -wW
output:
Traceback (most recent call last):
File "/home/abuild/rpmbuild/BUILD/Python-3.9.9/Lib/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/abuild/rpmbuild/BUILD/Python-3.9.9/Lib/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/abuild/rpmbuild/BUILD/Python-3.9.9/Lib/test/regrtest.py", line 47, in <module>
_main()
File "/home/abuild/rpmbuild/BUILD/Python-3.9.9/Lib/test/regrtest.py", line 43, in _main
main()
File "/home/abuild/rpmbuild/BUILD/Python-3.9.9/Lib/test/libregrtest/main.py", line 733, in main
Regrtest().main(tests=tests, **kwargs)
File "/home/abuild/rpmbuild/BUILD/Python-3.9.9/Lib/test/libregrtest/main.py", line 655, in main
self._main(tests, kwargs)
File "/home/abuild/rpmbuild/BUILD/Python-3.9.9/Lib/test/libregrtest/main.py", line 708, in _main
self.run_tests()
File "/home/abuild/rpmbuild/BUILD/Python-3.9.9/Lib/test/libregrtest/main.py", line 535, in run_tests
self.run_tests_sequential()
File "/home/abuild/rpmbuild/BUILD/Python-3.9.9/Lib/test/libregrtest/main.py", line 417, in run_tests_sequential
self.log(msg)
File "/home/abuild/rpmbuild/BUILD/Python-3.9.9/Lib/test/libregrtest/main.py", line 145, in log
load_avg = self.getloadavg()
File "/home/abuild/rpmbuild/BUILD/Python-3.9.9/Lib/test/libregrtest/main.py", line 668, in getloadavg
return os.getloadavg()[0]
OSError: Load averages are unobtainable
os:openeuler22.03
Linked PRs
- gh-99242 Catch OSError when calling getloadavg in libregrtest #106705
- gh-99242 Ignore error when running regression tests under certain conditions. #121663
- [3.13] gh-99242 Ignore error when running regression tests under certain conditions. (GH-121663) #121669
- [3.12] gh-99242 Ignore error when running regression tests under certain conditions. (GH-121663) #121670
Metadata
Metadata
Assignees
Labels
Python modules in the Lib dirPython modules in the Lib dirTests in the Lib/test dirTests in the Lib/test dirA feature request or enhancementA feature request or enhancement