<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_threaded_import.py, branch v2.4b2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_threaded_import.py?h=v2.4b2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_threaded_import.py?h=v2.4b2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2004-08-03T10:45:59Z</updated>
<entry>
<title>Don't exit test_main() with the lock 'done' held -- there's no cleaner</title>
<updated>2004-08-03T10:45:59Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2004-08-03T10:45:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fcc09bbad6b51a785c55ebccc0c4817cf111bf50'/>
<id>urn:sha1:fcc09bbad6b51a785c55ebccc0c4817cf111bf50</id>
<content type='text'>
way to guarantee a deadlock on the next call!

If I've inadvertently done some damage to this test, sorry (but I don't
think I have).
</content>
</entry>
<entry>
<title>Get rid of relative imports in all unittests.  Now anything that</title>
<updated>2002-07-23T19:04:11Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2002-07-23T19:04:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=04f357cffef6d764f2f0ff2671dabde75ec250d1'/>
<id>urn:sha1:04f357cffef6d764f2f0ff2671dabde75ec250d1</id>
<content type='text'>
imports e.g. test_support must do so using an absolute package name
such as "import test.test_support" or "from test import test_support".

This also updates the README in Lib/test, and gets rid of the
duplicate data dirctory in Lib/test/data (replaced by
Lib/email/test/data).

Now Tim and Jack can have at it. :)
</content>
</entry>
<entry>
<title>SF bug #516372:  test_thread: unhandled exc. in thread</title>
<updated>2002-02-16T07:26:27Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2002-02-16T07:26:27Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=20882dd1742310c8cf6858354ecb150810adb95c'/>
<id>urn:sha1:20882dd1742310c8cf6858354ecb150810adb95c</id>
<content type='text'>
Fix exit races in test_thread.py and test_threaded_import.py.
I suspect the bug is provokable only under Linux (where child threads
seem to get lots of cycles before they get killed after the main thread
exits), or on multi-processor machines running other OSes.
Bugfix candidate.
</content>
</entry>
<entry>
<title>Add a new function imp.lock_held(), and use it to skip test_threaded_import</title>
<updated>2001-08-30T05:16:13Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-08-30T05:16:13Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=692323488baf518117d3ede90189812723f39948'/>
<id>urn:sha1:692323488baf518117d3ede90189812723f39948</id>
<content type='text'>
when that test is doomed to deadlock.
</content>
</entry>
<entry>
<title>Workaround by Tim Peters to skip this test if run from test.autotest,</title>
<updated>2001-08-29T20:26:24Z</updated>
<author>
<name>Jack Jansen</name>
<email>jack.jansen@cwi.nl</email>
</author>
<published>2001-08-29T20:26:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=87797872a84ed8ca330fd98f8db63a9bef3e4287'/>
<id>urn:sha1:87797872a84ed8ca330fd98f8db63a9bef3e4287</id>
<content type='text'>
in which case it will hang because the import lock is already held
by the main thread.
</content>
</entry>
<entry>
<title>Implementing an idea from Guido on the checkins list:</title>
<updated>2001-05-22T18:28:25Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-05-22T18:28:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d97422115e9ed6498bc7a6f792a0bf8f278f9097'/>
<id>urn:sha1:d97422115e9ed6498bc7a6f792a0bf8f278f9097</id>
<content type='text'>
When regrtest.py finds an attribute "test_main" in a test it imports,
regrtest runs the test's test_main after the import.  test_threaded_import
needs this else the cross-thread import lock prevents it from making
progress.  Other tests can use this hack too, but I doubt it will ever be
popular.
</content>
</entry>
<entry>
<title>New test adapted from the ancient Demo/threads/bug.py.</title>
<updated>2001-05-22T09:34:27Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-05-22T09:34:27Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=aa222234c0836d32030c667240f20d8879e7f6b3'/>
<id>urn:sha1:aa222234c0836d32030c667240f20d8879e7f6b3</id>
<content type='text'>
ICK ALERT:  read the long comment block before run_the_test().  It was
almost impossible to get this to run without instant deadlock, and the
solution here sucks on several counts.  If you can dream up a better way,
let me know!
</content>
</entry>
</feed>
