summaryrefslogtreecommitdiff
path: root/greentest
Commit message (Collapse)AuthorAgeFilesLines
* reimplement BoundedSemaphore using two Semaphores; this resulted in a much ↵Denis Bilenko2009-03-291-2/+2
| | | | | | | more readable implementation - queue(0) should work well as a channel now - add 'balance' property, similar to that of channel's
* GreenTransportBase: revert half-closability (does not work with TLS anyway ↵Denis Bilenko2009-02-201-46/+46
| | | | | | | and not worth the complexity) - loseConnection() and write() have an optional 'sync' argument - twistedutil.protocol.ValueQueue improved
* GreenTransportBase: implement half-closability and write() that blocks until ↵Denis Bilenko2009-02-091-24/+68
| | | | | | | | | | data is sent. * add loseWriteConnection() method * add async_write() that does not wait (synonim for transport.write()) * GreenTransport's protocols now required to implement IHalfClosable interface * GreenTransport use PullProducer instead of PushProducer * add test for loseWriteConnection and remove test that does not work anymore
* proc fix: Source.wait(0) used to do the wrong thing - return None instead of ↵Denis Bilenko2009-01-211-6/+17
| | | | raising TimeoutError
* proc: special case for link(current greenlet) - raise an exception ↵Denis Bilenko2009-01-191-5/+7
| | | | immediatelly if the result is available
* removed httpd and its testDenis Bilenko2009-01-131-212/+0
|
* removed debugging print statementDenis Bilenko2009-01-131-1/+0
|
* Automated merge with ↵Denis Bilenko2009-01-1322-316/+867
|\ | | | | | | http://www.donovanpreston.com:8888/eventlet-twisted-integration/
| * updated copyrightsDenis Bilenko2009-01-1319-13/+152
| |
| * made test suite runnable under 2.4; it logs the Python version in the outputDenis Bilenko2009-01-129-92/+107
| |
| * proc module: renames wait to waitall; it only supports list of Procs now but ↵Denis Bilenko2009-01-121-11/+11
| | | | | | | | not individual Procs like it did before
| * tests: fixed a few unused or forgotten importsDenis Bilenko2009-01-124-4/+3
| |
| * simplifed and rewrote proc module; the interface is mostly the same exceptDenis Bilenko2009-01-121-75/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * notification happens in the main loop greenlet - no blocking stuff here is allowed * callbacks now called with different args; events and greenlets are notified the same way as before * GreenletExit is not converted to return value anymore; it's returned like any other exception * weak links aren't supported ("weak" argument is gone) * link_raise renamed to link_exception * link_return renamed to link_value * calling link_value does not remove "exception" link anymore and the other way around is also true * link() will to try to perform notification immediatelly even if the result is available * obscure function forward is gone * ProcKilled renamed to ProcExit compatible changes: * Source class is added that maintans the links and delivers the result
| * added test_thread__boundedsem.pyDenis Bilenko2009-01-121-0/+11
| |
| * added test_socket_ssl.py from standard python testsDenis Bilenko2009-01-121-0/+133
| |
| * added test__socket_errors.pyDenis Bilenko2009-01-121-0/+21
| |
| * fixed test__event.py: removed old imports of JobDenis Bilenko2009-01-111-1/+1
| |
| * added test__hub.py: tests schedule_local and schedule_global differenceDenis Bilenko2009-01-111-0/+42
| |
| * removed Job & friends from coros; use proc insteadDenis Bilenko2009-01-111-128/+0
| |
| * removed CancellingTimersGreenlet and Hub.cancel_timers; instead LocalTimer ↵Denis Bilenko2009-01-111-19/+23
| | | | | | | | | | | | | | | | | | | | is used which does not fire if the greenlet it's bound to is dead; * removed Hub's track_timer method * removed Hub.track_timer's track parameter * twistedHub also loses timer_finished method * commented 2 tests in coros_test.py that cannot work with the new order * eventlet now uses unchanged greenlets!
| * generate_report.py: protect from bogus inputDenis Bilenko2009-01-111-5/+5
| |
| * added copyrightDenis Bilenko2008-12-3112-0/+240
| |
* | mergedonovan2008-12-295-118/+105
|\ \ | |/ |/|
| * Rename the eventlet.support.greenlet module to greenlets to avoid clashing ↵donovan2008-12-295-118/+105
| | | | | | | | with the pypi greenlet distribution; support the pypi greenlet distribution; port httpc_test to use wsgi instead of httpd; add channel back in because I couldn't get pool to work properly with queue yet
* | added proc - advanced coroutine control, with tests, 1 test failsDenis Bilenko2008-12-291-0/+303
|/
* added test for semaphore(0, 0) deadlockDenis Bilenko2008-12-241-0/+30
|
* removed test_xxx_green.py files; moved the relevant stuff to test_xxx.py ↵Denis Bilenko2008-12-2415-59/+33
| | | | directly; undone some of my changes to python standard tests
* fixed typoDenis Bilenko2008-12-221-1/+1
|
* twistedutil fix: SpawnFactory could spawn handler with unconnected transport ↵Denis Bilenko2008-12-191-2/+26
| | | | (connectionMade); changed Protocol not to hold references to gtransport but send transport via _queue
* added [failing] test for coros.event send method bugDenis Bilenko2008-12-161-1/+14
|
* added tests for coros.JobGroupDenis Bilenko2008-12-161-15/+78
|
* better error messages in case of test failureDenis Bilenko2008-12-161-3/+3
|
* twistedutil.protocol.GreenTransport: made bufferSize of twisted's transport ↵Denis Bilenko2008-12-161-105/+80
| | | | customizable
* made api.timeout accept None as seconds argument, meaning the whole thing is ↵Denis Bilenko2008-12-161-3/+8
| | | | disabled
* test__api_timeout.py: fixed always true asserts; replaced always false ↵Denis Bilenko2008-12-161-6/+6
| | | | asserts with explitit raise
* Job's __init__ now accepts event as a parameter instead of a function; to ↵Denis Bilenko2008-12-151-7/+7
| | | | spawn a function either use 'spawn' method or spawn_new classmethod
* removed httpd_test and wsgi_test from the list of tests skipped by defaultDenis Bilenko2008-12-101-1/+1
|
* added makeGreenFile method to greenio.GreenSocket which creates GreenFile ↵Denis Bilenko2008-12-104-28/+28
| | | | instance instead of standard socket._fileobject (like makefile() does), Converted all the old eventled code and tests to use makeGreenFile() this fixes a huge number of failing tests
* Removed spawn_link and AsyncJob; added Job class that does the sameDenis Bilenko2008-12-101-9/+9
|
* renamed Buffer->GreenTransport, BufferCreator->GreenClientCreator etc; made ↵Denis Bilenko2008-12-101-0/+211
| | | | them use consumer/producer features of twisted; removed doctests added a unittest
* added exit_unless_twisted function to greentest; moved my code from ↵Denis Bilenko2008-12-104-11/+17
| | | | test_support.py to greentest/__init__.py
* added test for api.timeout: explicitly supplying _SilentException as an argumentDenis Bilenko2008-12-101-1/+14
|
* added test for api.timeout that checks no references to the error object ↵Denis Bilenko2008-12-101-0/+12
| | | | were leaked
* added 'throw_args' test for api.timeoutDenis Bilenko2008-12-101-0/+14
|
* renamed coros.async_result to coros.AsyncJob; added poll, kill_after, ↵Denis Bilenko2008-12-101-4/+36
| | | | __nonzero__ methods; made it access greenlet via weakref
* fixed bug with nested api.with_timeout interfering with each other; added a ↵Denis Bilenko2008-12-101-1/+6
| | | | testcase
* api.timeout: removed doctest, added a unittest. added a testcase for nested ↵Denis Bilenko2008-12-101-0/+61
| | | | timeouts
* added tests for eventlet.twistedutil.block_onDenis Bilenko2008-12-051-0/+39
|
* simple support for disabling testsDenis Bilenko2008-12-052-1/+10
|
* added spawn_link function (with tests)Denis Bilenko2008-11-241-3/+38
|