[New-bugs-announce] [issue9251] Test for the import lock

Antoine Pitrou report at bugs.python.org
Tue Jul 13 21:05:31 CEST 2010


New submission from Antoine Pitrou <pitrou at free.fr>:

The import lock is lacking tests that it functions properly.

Coming up with a way of checking it was unexpectedly hard. I finally managed to write a script which quite reliably fails if you patch Python/import.c to not take the import lock. The script relies on garbage collection trickery to release the GIL at arbitrary moments.
It should probably be converted to an unit test.

----------
components: Interpreter Core, Tests
files: mtimport.py
messages: 110219
nosy: brett.cannon, ncoghlan, pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: Test for the import lock
versions: Python 3.2
Added file: http://bugs.python.org/file17990/mtimport.py

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


More information about the New-bugs-announce mailing list