This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_regrtest fails with --without-threads
Type: Stage: resolved
Components: Tests Versions: Python 3.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: vstinner Nosy List: Arfrever, python-dev, vstinner
Priority: normal Keywords: patch

Created on 2015-10-10 19:08 by Arfrever, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test_regrtest.patch Arfrever, 2015-10-10 19:12
Messages (3)
msg252737 - (view) Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) * (Python triager) Date: 2015-10-10 19:08
6 tests of test.test_regrtest.ProgramsTestCase class introduced in revision 3393d86c3bb2 (in Python >=3.6) fail with --without-threads, because they unconditionally use -j4 option, but -jN where N != 1 is not supported with --without-threads. They also use --timeout option, which is also not supported with --without-threads.

======================================================================
FAIL: test_module_autotest (test.test_regrtest.ProgramsTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/cpython/Lib/test/test_regrtest.py", line 471, in test_module_autotest
    self.run_tests(args)
  File "/tmp/cpython/Lib/test/test_regrtest.py", line 445, in run_tests
    output = self.run_python(args)
  File "/tmp/cpython/Lib/test/test_regrtest.py", line 417, in run_python
    proc = self.run_command(args, **kw)
  File "/tmp/cpython/Lib/test/test_regrtest.py", line 411, in run_command
    self.fail(msg)
AssertionError: Command ['/tmp/cpython/python', '-X', 'faulthandler', '-I', '-Wd', '-E', '-bb', '-m', 'test.autotest', '-uall', '-rwW', '--timeout', '3600', '-j4', 'test_regrtest_21191_noop19', 'test_regrtest_21191_noop20', 'test_regrtest_21191_noop21', 'test_regrtest_21191_noop22'] failed with exit code 2

stdout:
---
Using random seed 5351037
Multiprocess option requires thread support

---

stderr:
---
Warning: The timeout option requires faulthandler.dump_traceback_later
---


======================================================================
msg252775 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2015-10-11 08:04
New changeset 0d0d83b1c078 by Victor Stinner in branch 'default':
Close #25369: Fix test_regrtest without thread support
https://hg.python.org/cpython/rev/0d0d83b1c078
msg252789 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2015-10-11 08:57
It's now fixed, thanks.
History
Date User Action Args
2022-04-11 14:58:22adminsetgithub: 69556
2015-10-11 08:57:34vstinnersetmessages: + msg252789
2015-10-11 08:04:41python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg252775

resolution: fixed
stage: resolved
2015-10-10 19:12:41Arfreversetfiles: + test_regrtest.patch
keywords: + patch
2015-10-10 19:08:52Arfrevercreate