summaryrefslogtreecommitdiff
path: root/tests/api_test.py
Commit message (Collapse)AuthorAgeFilesLines
* Use keyword argument here to make it easier to readJakub Stasiak2015-02-091-1/+1
|
* hubs: drop Twisted supportSergey Shepelev2014-10-291-4/+2
|
* Python 3 compat: Improve various bitsJakub Stasiak2014-10-101-5/+5
| | | | | | | | | | | | | | | | | | This includes changes to WSGI, websocket, bytes/str/unicode handling, SSL, backdoor, greenio and tests. Some comments and conditionals (PY2/PY3) were added for clarity GH issues: Closes #106 Closes #111 Closes #118 Closes #141 Incidentally should also close #135 (reopen if didn't) cc #6
* Remove most of the deprecated codeJakub Stasiak2014-10-101-41/+32
| | | | Closes GH #144
* Python 3 compatibility fixesJakub Stasiak2014-07-181-2/+2
| | | | | | Closes GH-102 Closes GH-103 Closes GH-104
* python3 compatibilitySergey Shepelev2014-04-241-13/+17
| | | | | | | | | | | | - __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 compatibilitySergey Shepelev2014-04-231-12/+11
| | | | | | | - dict.items().pop() in proc - str/bytes in backdoor, api_test, ssl_test, test__refcount - import httplib from six - PEP-8 fixes
* Skip SSL tests if SSL is not availableFloris Bruynooghe2012-09-051-0/+4
| | | | | This is particularly useful to not require the external OpenSSL module in order to run the tests on python2.5.
* Converted fully over to what the internet assures me is the American ↵Ryan Williams2010-05-051-3/+2
| | | | 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.
* Merge with latest which_linden tipamajorek2010-02-271-8/+9
|\
| * New module convenience; moved convenience functions in there. Sectioned off ↵Ryan Williams2010-02-251-8/+9
| | | | | | | | the basic_usage document a little differently to highlight the convenience functions. Wrote a bunch more serve tests.
* | Merge with latest which_linden tipamajorek2010-02-261-18/+15
|\ \ | |/
| * Fix some deprecation warningsChris AtLee2010-02-231-18/+15
| |
* | first draft of making eventlet py3k compatible.amajorek2010-02-261-1/+1
|/ | | | | | | | | | - __import__ used to import system modules in places where local module with the same name exist. - GreenSocket.timeout private member renamed to _timeout. It is R/O property in 3.x socket.socket object. - Calls to GreensSocket.timeout changed to call gettimeout to isolate clients from GreenSocket internals. - GreenSocket access to unknown attributes will be forwarded to fd member. i.e. py3k has _io_refs property not needed in 2.x version - get_errno moved to eventlet/greenio.py to be accessible to every place where testing socket.error.errno is needed - Modified tests to use makefile with mode='w' where data was written. 3.x does not allow to write to file opened for reading. - socket._fileobject class does not exist in 3.x. It will be emulated with _fileobject function. Also moved definition from eventlet.green.socket to eventlet.grreenio.
* Hub selection via environment variable obviates the need for the ↵Ryan Williams2010-02-211-1/+0
| | | | eventlethub. Fixed up docs to refer to it.
* Moved a test.Ryan Williams2010-01-251-37/+0
|
* Added silent timer support to pyevent hub, upgraded api_test to use actual ↵Ryan Williams2010-01-081-3/+3
| | | | unit test primitives rather than inventing its own.
* Moved get_hub, use_hub, get_default_hub to eventlet.hubs. This is a step in ↵Ryan Williams2009-12-171-17/+5
| | | | the direction of better factoring and fewer circular-ish dependencies.
* Renamed coros.event to coros.Event to be compatible with PEP-8 some more.Ryan Williams2009-12-161-1/+1
|
* Removed previously-deprecated features tcp_server, GreenSSL, erpc, and ↵Ryan Williams2009-12-151-28/+0
| | | | trap_errors.
* Tweaked trampoline_timeout because Windows assumes that sockets that are not ↵Ryan Williams2009-12-041-4/+10
| | | | in the middle of accepting are invalid.
* Added additional error trapping in select hub for Windows compatibility, ↵Ryan Williams2009-12-041-6/+13
| | | | rewrote a test to use sockets instead of pipes
* Deprecated tcp_server, added an accept loop example, fixed up two sites that ↵Ryan Williams2009-11-241-4/+11
| | | | still used tcp_server.
* Initial implemenation of using ssl module instead of pyOpenSSL.Ryan Williams2009-11-211-6/+10
|
* Removed copyright headers from individual files, added LICENSE and AUTHORS ↵Ryan Williams2009-10-031-21/+0
| | | | files to give credit instead. Linked authors list into documentation.
* Added cool little debug mode to Hub which makes it easier to see why a ↵Ryan Williams2009-08-241-1/+1
| | | | 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.
* Fix for api_test's connect_ssl test mucking up subsequent tests.Ryan Williams2009-08-231-1/+6
|
* Merged test__api into api_testRyan Williams2009-08-061-0/+33
|
* Full duplex for select hub. tcp_server has to be changed because we no ↵Ryan Williams2009-08-021-8/+14
| | | | longer raise EPIPE into waiting coroutines when closing a socket. api_test was correspondingly changed so it still worked. TestCloseSocketWhilePolling was removed because it was testing no-longer-existing behavior. add_descriptor is gone, replaced by add_reader and add_writer.
* Renamed greentest to tests to be more standard.Ryan Williams2009-07-241-0/+225