New submission from Antoine Pitrou <pit...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue9251>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to