deb-python-eventlet/tests
Tim Burke f508a7e330 greendns: Return answers from /etc/hosts despite nameserver errors
When calling getaddrinfo with an unspecified address family, we:

 * try to get an IPv6 address for the host, first trying /etc/hosts and
   failing that, using any external nameserver, then
 * try to get an IPv4 address for it, with the same /etc/hosts ->
   external nameserver priority.

Note that if the host can be resolved using /etc/hosts but only to one
of the two address families, we still attempt to contact the external
nameserver to resolve it in the other family.

Previously, if this timed out or raised a DNSException other than
NXDOMAIN, EAI_EAGAIN_ERROR or EAI_NODATA_ERROR would be raised even
though we could resolve the host. Now, those errors will only be raised
if neither attempt at resolution succeeded.

https://github.com/eventlet/eventlet/pull/354
2016-11-09 08:39:16 +03:00
..
isolated bundle dnspython in support/; resolving is always green 2016-08-24 11:51:28 +05:00
manual websocket: support Gunicorn environ['gunicorn.socket'] 2016-07-06 18:53:53 +05:00
stdlib pep8: Fix remaining issues 2014-11-12 09:05:10 +00:00
README Commenting out test that fails only in hudson, need to investigate why later. 2010-02-20 14:34:49 -08:00
__init__.py tests: str/bytes typo on run_python timeout 2016-11-05 22:43:35 +03:00
api_test.py Use keyword argument here to make it easier to read 2015-02-09 23:16:30 +01:00
backdoor_test.py Fix whitespace to conform to our linting tests 2016-01-12 09:34:04 +01:00
convenience_test.py convenience: listen() sets SO_REUSEPORT when available; Thanks to Zhengwei Gao 2016-10-28 01:09:40 +03:00
dagpool_test.py Add DAGPool, a dependency-driven greenthread pool 2016-09-25 16:24:33 +05:00
db_pool_test.py tests: Remove skipped tests 2016-01-06 23:58:45 +01:00
debug_test.py Refactor capturing stderr into a context manager 2014-10-15 23:58:18 +01:00
env_test.py little clean up 2016-02-12 20:42:03 +05:00
event_test.py PEP-8 fixes 2014-08-27 10:21:55 +04:00
fork_test.py Python 3 compat: Improve subprocess, WSGI and tests 2014-10-13 22:05:09 +01:00
green_http_test.py Provide green http without undesired side effects 2016-07-08 16:06:23 +02:00
greendns_test.py greendns: Return answers from /etc/hosts despite nameserver errors 2016-11-09 08:39:16 +03:00
greenio_test.py tests: (minor) socket.sendall() needs bytes, not string 2016-08-24 12:07:33 +05:00
greenpool_test.py Fix typos detected by toolkit misspellings 2015-02-07 16:41:47 +01:00
greenthread_test.py PEP-8 fixes 2014-08-27 10:21:55 +04:00
hub_test.py green.urllib2: missing patched ssl module 2016-04-22 09:33:10 +05:00
hub_test_fork.py python3 compatibility 2014-04-24 18:11:37 +04:00
mock.py Fix typos detected by toolkit misspellings 2015-02-07 16:41:47 +01:00
mysqldb_test.py tests/isolated for tests sandboxed in separate python process 2015-02-25 00:23:11 +03:00
nosewrapper.py python3 compat: remove lots of Python 2.5 and earlier dependent code; use print() function syntax 2013-12-03 22:36:29 +04:00
openssl_test.py Port eventlet.green.OpenSSL to Python 3 2015-06-30 22:36:01 +03:00
parse_results.py Reformat with autopep8 2014-10-11 01:41:30 +01:00
patcher_psycopg_test.py Python 3 compatibility fixes 2014-07-18 02:12:53 +04:00
patcher_test.py tests: str/bytes typo on run_python timeout 2016-11-05 22:43:35 +03:00
pools_test.py PEP-8 fixes 2014-08-27 10:21:55 +04:00
queue_test.py Reformat with autopep8 2014-10-11 01:41:30 +01:00
semaphore_test.py tests: clean out unittest.main() 2016-06-01 18:00:20 +05:00
socket_test.py greenio: _recv_loop behaviour with recv_into on closed sock 2016-10-28 00:18:15 +03:00
ssl_test.py ssl: Fix "TypeError: read() argument 2 must be read-write bytes-like object, not None" 2016-09-26 15:09:41 +01:00
subprocess_test.py subprocess: Fix patched functions with optional arguments 2016-07-11 14:59:50 +02:00
test__event.py tests: clean out unittest.main() 2016-06-01 18:00:20 +05:00
test__greenness.py tests: clean out unittest.main() 2016-06-01 18:00:20 +05:00
test__refcount.py tests: clean out unittest.main() 2016-06-01 18:00:20 +05:00
test__socket_errors.py tests: clean out unittest.main() 2016-06-01 18:00:20 +05:00
test_server.crt Commenting out test that fails only in hudson, need to investigate why later. 2010-02-20 14:34:49 -08:00
test_server.key Commenting out test that fails only in hudson, need to investigate why later. 2010-02-20 14:34:49 -08:00
thread_test.py tests: Remove skipped tests 2016-01-06 23:58:45 +01:00
timeout_test.py PEP-8 fixes 2014-08-27 10:21:55 +04:00
timeout_test_with_statement.py PEP-8 fixes 2014-08-27 10:21:55 +04:00
timer_test.py PEP-8 fixes 2014-08-27 10:21:55 +04:00
tpool_test.py tpool: isolate internal socket from default timeout; Thanks to Alex Villacís Lasso 2016-08-10 11:23:54 +05:00
websocket_new_test.py little clean up 2016-02-12 20:42:03 +05:00
websocket_test.py little clean up 2016-02-12 20:42:03 +05:00
wsgi_test.py wsgi: Unix socket address representation; Thanks to Samuel Merritt 2016-08-20 12:59:45 +05:00
zmq_test.py green.urllib2: missing patched ssl module 2016-04-22 09:33:10 +05:00

README

The tests are intended to be run using Nose.  
http://somethingaboutorange.com/mrl/projects/nose/

To run tests, simply install nose, and then, in the eventlet tree, do:
   $ nosetests

That's it!  Its output is the same as unittest's output.  It tends to emit a lot of tracebacks from various poorly-behaving tests, but they still (generally) pass.