summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_queue.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #7449, last part (11): fix many tests if thread support is disabledVictor Stinner2010-04-271-1/+1
| | | | | | * Use try/except ImportError or test_support.import_module() to import thread and threading modules * Add @unittest.skipUnless(threading, ...) to testcases using threads
* Remove unused imports in test modules.Georg Brandl2010-02-071-1/+0
|
* #7092: Silence more py3k warnings. Patch by Florent Xicluna.Ezio Melotti2010-02-031-5/+7
|
* Reverting the Revision: 77368. I committed Flox's big patch for tests bySenthil Kumaran2010-01-081-7/+6
| | | | mistake. ( It may come in for sure tough)
* Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵Senthil Kumaran2010-01-081-6/+7
| | | | Patch by flox
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-14/+14
|
* give the threading API PEP 8 namesBenjamin Peterson2008-06-111-4/+4
|
* Queue renaming reversal part 3: move module into place andGeorg Brandl2008-05-251-12/+12
| | | | change imports and other references. Closes #2925.
* Added stub for the Queue module to be renamed in 3.0.Alexandre Vassalotti2008-05-111-13/+13
| | | | Use the 3.0 module name to avoid spurious warnings.
* Revert accidental changes to test_queue in r60605.Georg Brandl2008-02-061-20/+16
|
* * Use the same code to profile for test_profile and test_cprofile.Georg Brandl2008-02-051-16/+20
| | | | | | | | * Convert both to unittest. * Use the same unit testing code. * Include the expected output in both test files. * Make it possible to regenerate the expected output by running the file as a script with an '-r' argument.
* Use context manager for a lock.Brett Cannon2008-02-031-4/+1
|
* Fix a conversion mistake that caused test_queue to fail intermittently.Georg Brandl2008-02-021-4/+4
|
* Rewrite test_queue as unittest. Written for GHOP by Ian Seyer.Georg Brandl2008-02-021-231/+267
|
* Add queues will alternative fetch orders (priority based and stack based).Raymond Hettinger2008-01-161-12/+19
|
* fix typoGeorg Brandl2006-03-251-1/+1
|
* Don't decrement below zero. And add more tests.Raymond Hettinger2006-03-251-3/+17
|
* Whitespace normalization.Tim Peters2006-03-251-1/+1
|
* Revert previous change. Wasn't ready yet.Raymond Hettinger2006-03-241-12/+1
|
* Add more testsRaymond Hettinger2006-03-241-1/+12
|
* SF Patch #1455676: Simplify using Queues with daemon consumer threadsRaymond Hettinger2006-03-241-0/+30
| | | | | Adds join() and task_done() methods to track when all enqueued tasks have been gotten and fully processed by daemon consumer threads.
* Stab at SF 1010777: test_queue fails occasionallyTim Peters2004-08-201-14/+53
| | | | | | | | | | | | | | | | | | | | | | | | test_queue has failed occasionally for years, and there's more than one cause. The primary cause in the SF report appears to be that the test driver really needs entirely different code for thread tests that expect to raise exceptions than for thread tests that are testing non-exceptional blocking semantics. So gave them entirely different code, and added a ton of explanation. Another cause is that the blocking thread tests relied in several places on the difference between sleep(.1) and sleep(.2) being long enough for the trigger thread to do its stuff sot that the blocking thread could make progress. That's just not reliable on a loaded machine. Boosted the 0.2's to 10.0's instead, which should be long enough under any non-catastrophic system conditions. That doesn't make the test take longer to run, the 10.0 is just how long the blocking thread is *willing* to wait for the trigger thread to do something. But if the Queue module is plain broken, such tests will indeed take 10 seconds to fail now. For similar (heavy load) reasons, changed threaded-test termination to be willing to wait 10 seconds for the signal thread to end too.
* Semantic-neutral format and comment changes.Tim Peters2004-08-201-14/+16
|
* Style guide reformats. I saw this test fail on a very heavily loadedTim Peters2002-11-151-6/+9
| | | | | | Win98SE box, but whatever the cause, it had scrolled off the DOS box. (There was just the "test_queue failed" summary at the end of the regrtest run.)
* Patch #572628: Optional timeouts for put and get.Martin v. Löwis2002-10-151-2/+37
|
* 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. :)
* Fix bug 544473 - "Queue module can deadlock".Mark Hammond2002-04-191-0/+158
Use try/finally to ensure all Queue locks remain stable. Includes test case. Bugfix candidate.