<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_threadedtempfile.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_threadedtempfile.py?h=v2.4b2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_threadedtempfile.py?h=v2.4b2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2002-09-25T20:32:28Z</updated>
<entry>
<title>SF bug 613233: test_threadedtempfile hangs</title>
<updated>2002-09-25T20:32:28Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2002-09-25T20:32:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d8a9d2a0e964d1018f1ba4fa3857a3f061a24137'/>
<id>urn:sha1:d8a9d2a0e964d1018f1ba4fa3857a3f061a24137</id>
<content type='text'>
A possibility to deadlock (on the hidden import lock) was created here
in 2.3, seemingly when tempfile.py started to call functions in
random.py.  The cure is "the usual":  don't spawn threads as a side
effect of importing, when the spawned threads themselves do imports
(directly or indirectly), and the code that spawned the threads is
waiting for the threads to finish (they can't finish, because they're
waiting for the import lock the spawner still holds).  Worming around
this is why the "test_main" mechanism was introduced in regrest, so
it's a straightforward fix.

NOT a bugfix candidate; the problem was introduced in 2.3.
</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>Add "import thread" at the top of the module; this prevents us from</title>
<updated>2001-04-14T14:35:43Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-04-14T14:35:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9df3eabd6ef2a0a177976eacb785e630680c0437'/>
<id>urn:sha1:9df3eabd6ef2a0a177976eacb785e630680c0437</id>
<content type='text'>
failing later when Python is compiled without threading but a failing
'threading' module can be imported due to an earlier (caught) attempt.
</content>
</entry>
<entry>
<title>Fix stupidity.</title>
<updated>2001-01-13T03:45:59Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-01-13T03:45:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=73cbc5e6166358ca3b6c0600533af0cd03fdeea6'/>
<id>urn:sha1:73cbc5e6166358ca3b6c0600533af0cd03fdeea6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Guido found a brand new race in tempfile on Linux, due to Linux changing</title>
<updated>2001-01-13T03:04:02Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-01-13T03:04:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9fadfb0d1dbf1b42efbe1374ea55f99b57b76a3f'/>
<id>urn:sha1:9fadfb0d1dbf1b42efbe1374ea55f99b57b76a3f</id>
<content type='text'>
pid across threads (but in that case, it's still the same process, and so
still sharing the "template" cache in tempfile.py).  Repaired that, and
added a new std test.
On Linux, someone please run that standalone with more files and/or more
threads; e.g.,

    python lib/test/test_threadedtempfile.py -f 1000 -t 10

to run with 10 threads each creating (and deleting) 1000 temp files.
</content>
</entry>
</feed>
