Antoine Pitrou <pit...@free.fr> added the comment: > test_threaded_import is designed to check the import lock (and it does > at least to some degree - I changed runpy's handling of the import > lock because my original approach broke that test).
Apparently, Lib/test/test_threaded_import only works if run directly. If run through regrtest, it succeeds even with the import lock disabled (probably because random.py is already included by regrtest). ---------- _______________________________________ 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