[New-bugs-announce] [issue28484] test_capi, test_regrtest fail when multithreading disabled

Martin Panter report at bugs.python.org
Thu Oct 20 03:26:49 EDT 2016


New submission from Martin Panter:

Two tests in test_capi assume that the GIL is always used, but I don’t think it is available when Python is built with “configure --without-threads”. So I propose to skip these tests if the “threading” module is unavailable.

In test_regrtest, a test is rerun using the -j2 option, which fails if multithreading is disabled. I propose to only run without -j2 if “threading” does not import.

Victor, I grouped these two changes together because both bits of code have your name on them. Hopefully you can give them a quick review :)

----------
components: Tests
files: mt-victor.patch
keywords: patch
messages: 279017
nosy: haypo, martin.panter
priority: normal
severity: normal
stage: patch review
status: open
title: test_capi, test_regrtest fail when multithreading disabled
type: behavior
versions: Python 3.6, Python 3.7
Added file: http://bugs.python.org/file45148/mt-victor.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28484>
_______________________________________


More information about the New-bugs-announce mailing list