summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_thread.py
Commit message (Collapse)AuthorAgeFilesLines
* issue8053 - logic was inverted on which platforms to run a test on.Gregory P. Smith2010-03-041-1/+1
| | | | caused test_thread to fail on windows.
* Merged revisions 78550 via svnmerge fromGregory P. Smith2010-03-011-5/+4
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78550 | gregory.p.smith | 2010-02-28 22:01:02 -0800 (Sun, 28 Feb 2010) | 2 lines Fix test to be skipped on windows. ........
* Merged revisions 78527,78531 via svnmerge fromGregory P. Smith2010-03-011-1/+41
| | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78527 | gregory.p.smith | 2010-02-28 17:22:39 -0800 (Sun, 28 Feb 2010) | 4 lines Issue #7242: On Solaris 9 and earlier calling os.fork() from within a thread could raise an incorrect RuntimeError about not holding the import lock. The import lock is now reinitialized after fork. ........ r78531 | gregory.p.smith | 2010-02-28 18:31:33 -0800 (Sun, 28 Feb 2010) | 2 lines Fix for r78527. It left out updating forkpty. ........
* Merged revisions 76137,76172 via svnmerge fromAntoine Pitrou2009-11-091-1/+6
| | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r76137 | antoine.pitrou | 2009-11-06 23:34:35 +0100 (ven., 06 nov. 2009) | 4 lines Issue #7270: Add some dedicated unit tests for multi-thread synchronization primitives such as Lock, RLock, Condition, Event and Semaphore. ........ r76172 | antoine.pitrou | 2009-11-09 17:00:11 +0100 (lun., 09 nov. 2009) | 5 lines Issue #7282: Fix a memory leak when an RLock was used in a thread other than those started through `threading.Thread` (for example, using `thread.start_new_thread()`. ........
* Merged revisions 75633 via svnmerge fromAntoine Pitrou2009-10-271-1/+4
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r75633 | antoine.pitrou | 2009-10-23 20:32:15 +0200 (ven., 23 oct. 2009) | 3 lines Issue #7194: test_thread could try to release an unacquired mutex (and fail). ........
* Speed test_thread up from 51.328s to 0.081s by reducing its sleep times. WeJeffrey Yasskin2008-03-181-6/+10
| | | | | still sleep at all to make it likely that all threads are active at the same time.
* Move test_thread over to unittest. Commits GHOP 237.Brett Cannon2008-03-131-147/+151
| | | | Thanks Benjamin Peterson for the patch.
* Increase the small thread stack size to get the testAndrew MacIntyre2006-06-131-2/+2
| | | | | to pass reliably on the one buildbot that insists on more than 32kB of thread stack.
* Whitespace normalization.Tim Peters2006-06-131-1/+1
|
* fix exception usageAndrew MacIntyre2006-06-131-1/+1
|
* Patch #1454481: Make thread stack size runtime tunable.Andrew MacIntyre2006-06-131-0/+43
| | | | | | | | | | Heavily revised, comprising revisions: 46640 - original trunk revision (backed out in r46655) 46647 - markup fix (backed out in r46655) 46692:46918 merged from branch aimacintyre-sf1454481 branch tested on buildbots (Windows buildbots had problems not related to these changes).
* Revert revisions:Tim Peters2006-06-041-35/+0
| | | | | | | | | | | | | | | | 46640 Patch #1454481: Make thread stack size runtime tunable. 46647 Markup fix The first is causing many buildbots to fail test runs, and there are multiple causes with seemingly no immediate prospects for repairing them. See python-dev discussion. Note that a branch can (and should) be created for resolving these problems, like svn copy svn+ssh://svn.python.org/python/trunk -r46640 svn+ssh://svn.python.org/python/branches/NEW_BRANCH followed by merging rev 46647 to the new branch.
* Patch #1454481: Make thread stack size runtime tunable.Andrew MacIntyre2006-06-041-0/+35
|
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | 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. :)
* SF bug #516372: test_thread: unhandled exc. in threadTim Peters2002-02-161-3/+7
| | | | | | | | 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.
* a bold attempt to fix things broken by MAL's verify patch: importFredrik Lundh2001-01-171-1/+1
| | | | 'verify' iff it's used by a test module...
* This patch removes all uses of "assert" in the regression test suiteMarc-André Lemburg2001-01-171-1/+1
| | | | | | | and replaces them with a new API verify(). As a result the regression suite will also perform its tests in optimization mode. Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-70/+70
|
* Use random instead of whrandom.Guido van Rossum1998-05-201-8/+8
|
* Nit: round delays to 0.1 second.Guido van Rossum1997-07-181-2/+2
|
* Use the new regrtest harnessBarry Warsaw1997-01-131-4/+1
|
* (test_thread.py): modifications to quiet it up when not running as a script.Barry Warsaw1996-12-161-6/+16
| | | | (testall.py): added test_thread to the list of regression tests.
* added barrier test (by Tim Peters)Guido van Rossum1994-05-231-2/+67
|
* Module to test threadsGuido van Rossum1994-04-141-0/+41