<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_capi.py, branch 2.6</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_capi.py?h=2.6</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_capi.py?h=2.6'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2008-04-08T21:27:42Z</updated>
<entry>
<title>Issue2564: Prevent a hang in "import test.autotest", which runs the entire test</title>
<updated>2008-04-08T21:27:42Z</updated>
<author>
<name>Amaury Forgeot d'Arc</name>
<email>amauryfa@gmail.com</email>
</author>
<published>2008-04-08T21:27:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4b798bdf8ab3a4a4b3b11ea60a8f0b1c54e43224'/>
<id>urn:sha1:4b798bdf8ab3a4a4b3b11ea60a8f0b1c54e43224</id>
<content type='text'>
suite as a side-effect of importing the module.

- in test_capi, a thread tried to import other modules
- re.compile() imported sre_parse again on every call.
</content>
</entry>
<entry>
<title>Try to repair at least one segfault on the Mac buildbot,</title>
<updated>2006-03-21T03:58:41Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2006-03-21T03:58:41Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=59b96c1029290822b7069634fce4628b19b2d4ca'/>
<id>urn:sha1:59b96c1029290822b7069634fce4628b19b2d4ca</id>
<content type='text'>
as diagnosed by Nick Coghlan.

test_capi.py:  A test module should never spawn a thread as
a side effect of being imported.  Because this one did, the
segfault one of its thread tests caused didn't occur until
a few tests after test_regrtest.py thought test_capi was
finished.  Repair that.  Also join() the thread spawned
at the end, so that test_capi is truly finished when
regrtest reports that it's done.

_testcapimodule.c test_thread_state():  this spawns a
couple of non-threading.py threads, passing them a PyObject*
argument, but did nothing to ensure that those threads
finished before returning.  As a result, the PyObject*
_could_ (although this was unlikely) get decref'ed out of
existence before the threads got around to using it.
Added explicit synchronization (via a Python mutex) so
that test_thread_state can reliably wait for its spawned
threads to finish.
</content>
</entry>
<entry>
<title>Revert previous checkin on getargs 'L' code. Try to convert all</title>
<updated>2005-03-03T12:26:35Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2005-03-03T12:26:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6ce7ed23d0449daa70f396486fae3c1014d93191'/>
<id>urn:sha1:6ce7ed23d0449daa70f396486fae3c1014d93191</id>
<content type='text'>
numbers in PyLong_AsLongLong, and update test suite accordingly.
Backported to 2.4.
</content>
</entry>
<entry>
<title>Clear internal call error in 'L' format. Fixes #723201.</title>
<updated>2005-03-03T09:24:38Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2005-03-03T09:24:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ff232d723089eb0c743265821db528494a661099'/>
<id>urn:sha1:ff232d723089eb0c743265821db528494a661099</id>
<content type='text'>
Backported to 2.4.
</content>
</entry>
<entry>
<title>Whitespace normalization.</title>
<updated>2004-08-26T05:23:19Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2004-08-26T05:23:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=66cb018c96e49b5e5cf1b8fc395171a223d86d8e'/>
<id>urn:sha1:66cb018c96e49b5e5cf1b8fc395171a223d86d8e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix for [ 1010677 ] thread Module Breaks PyGILState_Ensure(),</title>
<updated>2004-08-24T22:24:08Z</updated>
<author>
<name>Mark Hammond</name>
<email>mhammond@skippinet.com.au</email>
</author>
<published>2004-08-24T22:24:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=eb619bb80b651a99abd1fe016d0ac024cbd9677a'/>
<id>urn:sha1:eb619bb80b651a99abd1fe016d0ac024cbd9677a</id>
<content type='text'>
and a test case.
When booting a new thread, use the PyGILState API to manage the GIL.
</content>
</entry>
<entry>
<title>Whitespace normalization.</title>
<updated>2003-04-24T16:02:54Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-04-24T16:02:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0eadaac7dc3ae49974c105ff9e8c1e98a04d7d5a'/>
<id>urn:sha1:0eadaac7dc3ae49974c105ff9e8c1e98a04d7d5a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>New PyGILState_ API - implements pep 311, from patch 684256.</title>
<updated>2003-04-19T15:41:53Z</updated>
<author>
<name>Mark Hammond</name>
<email>mhammond@skippinet.com.au</email>
</author>
<published>2003-04-19T15:41:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8d98d2cb95ac37147a4de5a119869211e8351324'/>
<id>urn:sha1:8d98d2cb95ac37147a4de5a119869211e8351324</id>
<content type='text'>
</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>Fix typo in comment (the module is now called _testcapi, not _test).</title>
<updated>2001-04-13T17:03:04Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-04-13T17:03:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=361c53586393e5d2920f49d28c3079264ce1957c'/>
<id>urn:sha1:361c53586393e5d2920f49d28c3079264ce1957c</id>
<content type='text'>
</content>
</entry>
</feed>
