summaryrefslogtreecommitdiff
path: root/tests/tpool_test.py
Commit message (Collapse)AuthorAgeFilesLines
* tpool: make sure we return results during killallDavid Szotten2015-02-211-1/+17
| | | | since we are about to delete the _rspq
* PEP-8 fixesSergey Shepelev2014-08-271-7/+7
|
* greenio, tpool: python3 compatibilitySergey Shepelev2014-07-181-1/+1
| | | | | | | Also: - PEP-8 - check both EAGAIN/EWOULDBLOCK - use system implementation of GreenPipe.readinto()
* tests: deprecated TestCase.assert_() -> assert keywordSergey Shepelev2014-07-161-21/+21
| | | | https://github.com/eventlet/eventlet/issues/101
* python3 compatibilitySergey Shepelev2014-04-241-35/+41
| | | | | | | | | | | | - __next__ for iterator interface - six.next() to get next item - list(dict.keys()) - popen2.popen4 -> subprocess - s2b -> b"..." literals - deprecated assertEquals -> assertEqual - hub_test test_fork using run_python - 1L -> 1 long literal - many PEP-8 fixes
* python3 compat fixesVictor Sergeyev2014-03-281-8/+13
| | | | https://github.com/eventlet/eventlet/pull/59
* python3 compat: print() function syntaxSergey Shepelev2013-12-031-10/+11
|
* Added missing global var, and added nose test for set_num_threadsDavid Ibarra2012-11-021-0/+5
|
* Timeouts get porpagated out of tpool.execute.Ryan Williams2011-04-121-0/+6
|
* Removed superfluous esend method, pyevent skip for yet another tpool test, durr.Ryan Williams2010-10-031-0/+1
|
* Cleaned up tpool-related tests a bit.Ryan Williams2010-09-291-4/+2
|
* Greenlet affinity for tpool threads. This means that if you make multiple ↵Ryan Williams2010-09-281-4/+28
| | | | tpool calls with the same greenthread, they will all go through the same real thread.
* tpool.Proxy now wraps functions. Improved impolementations of equality and ↵Ryan Williams2010-06-211-0/+28
| | | | iteration in tpool as well.
* Converted fully over to what the internet assures me is the American ↵Ryan Williams2010-05-051-3/+0
| | | | spelling of 'canceled' -- this only affects internal variables. Also cleaned up the meticulous timer accounting of the hub tests so they stop failing after other tests are run. Also added new parameter to the abort method because it seemed to be the dominant mode of operation.
* Adding more explicit exception assertion to tpool test.Ryan Williams2010-04-181-0/+7
|
* More tinkering with the iterator tests to cut down on false positives.Ryan Williams2010-03-291-3/+7
|
* Lessen timing-dependency of this count, also better error reporting.Ryan Williams2010-03-251-3/+3
|
* Fixed overlong duration of iterator test.Ryan Williams2010-03-251-4/+5
|
* Improved implentation of iterators in tpool; thanks to SlantRyan Williams2010-03-171-0/+24
|
* py3k - corrections for deprecation warnings reported by python2.6 -3.amajorek2010-03-091-1/+11
| | | | | | | - integer division - repr instead of ` Added __hash__ to speedy Proxy funtions - 3.x requires __hash__ if __eq__ is defined. Found problem with comparing two proxy objects.
* py3k - more testcases portedamajorek2010-03-071-4/+3
|
* It turns out that __iter__ is one of those magical methods, too. Now tpool ↵Ryan Williams2010-03-041-0/+9
| | | | supports proxying iterators.
* Kill all!Ryan Williams2010-02-241-1/+2
|
* Switching order of teardown makes it less bitchy about lingering listeners.Ryan Williams2010-02-241-3/+1
|
* tweaks to remove some DeprecationWarnings when running testsEugene Oden2010-02-221-5/+5
|
* Extended tpool's autowrap functionality to use the name of the attribute, ↵Ryan Williams2010-02-061-0/+29
| | | | which is a lot cleaner than type-checking (which is still supported). Added psycopg tests to db_pool tests.
* Removed unnecessary setup() call in tpool_test.Ryan Williams2010-01-181-1/+0
|
* Fixed a few rare errors revealed by copious testing, moved long-duration ↵Ryan Williams2010-01-151-51/+47
| | | | tpool tests to their own testcase with longer timeout.
* Removed deprecation warnings from tpool_test.py, more cleanup in killall and ↵Ryan Williams2010-01-151-13/+14
| | | | setup.
* Converted tpool to use newer APIs, improved cleanup and tests some more.Ryan Williams2010-01-151-7/+4
|
* Slightly improved setup/killall, and added debugging to tpool tests.Ryan Williams2010-01-141-1/+3
|
* Some essentially-meaningless reorg in the tpool tests, mostly for the ↵Ryan Williams2009-12-181-34/+19
| | | | purposes of making them more understandable and faster-executing.
* Renamed libevent hub to pyevent.Ryan Williams2009-12-161-17/+17
|
* Changes to tests so they no longer import uuid since that's not 2.4-standard.Ryan Williams2009-09-171-20/+20
|
* It turns out that if my --eventlet-hub=foo command fails to import foo, I ↵Ryan Williams2009-08-311-1/+17
| | | | don't really want it to just write a warning, I want it to crash hard. Skipped the threading-related tests when using the libevent hub, as well as the multiple readers test, because it fails all of them.
* Added cool little debug mode to Hub which makes it easier to see why a ↵Ryan Williams2009-08-241-1/+6
| | | | particular fileno is in the hub by recording the traceback of when the fileno was added. Enable this mode by doing api.get_hub().debug = True. Tweaked tpool so that it only starts up its thread pool when you actually call execute(). I think this is not a performance hit and it will make it somewhat nicer to use. Some other randomc changes like more explicit package name in test_named so it passes when called from within nose.
* Moved some copy-and-paste test code into stdlib and did the monkeypatching ↵Ryan Williams2009-08-241-3/+5
| | | | thing on it. Improved nose-friendliness of dbpool and tpool tests.
* Eliminate references to 'greentest'Ryan Williams2009-07-271-1/+1
|
* Renamed greentest to tests to be more standard.Ryan Williams2009-07-241-0/+216