- 23 Sep, 2012 7 commits
-
-
Denis Bilenko authored
in 5 more tests; this ensures more checks, esp. in debug mode
-
Denis Bilenko authored
read() in small chunks, as reading in big chunks from non-blocking fd fails on Mac OS X. Do os._exit() in "finally" section, to avoid raising an exception and thus executing unrelated code of the main process. Original patch by Vitaly Kruglikov.
-
Denis Bilenko authored
so that they pass on python-dbg
-
Denis Bilenko authored
-
Denis Bilenko authored
-
Denis Bilenko authored
-
Denis Bilenko authored
-
- 22 Sep, 2012 6 commits
-
-
Denis Bilenko authored
-
Denis Bilenko authored
-
Denis Bilenko authored
when '.' is not in host
-
Denis Bilenko authored
- extract IPv6-related tests from test__socket_dns.py and put them into test__socket_dns6.py - improve log messages
-
Denis Bilenko authored
resolver_ares.Resolver: if use_environ is True (default) then kwargs is default-set from the environment: parameter xxx is set from variable GEVENTARES_XXX (servers -> GEVENTARES_SERVERS)
-
Denis Bilenko authored
the channel class can now accept strings for c-ares parameters, such as 'servers' and 'udp_port'. This is needed to initialize c-ares directly from os.environ.
-
- 21 Sep, 2012 4 commits
-
-
Denis Bilenko authored
-
Denis Bilenko authored
[no ci]
-
Vitaly Kruglikov authored
-
Denis Bilenko authored
-
- 20 Sep, 2012 17 commits
-
-
Denis Bilenko authored
-
Denis Bilenko authored
it no longer depends on specific minor python version
-
Denis Bilenko authored
-
Denis Bilenko authored
-
Denis Bilenko authored
[ci skip]
-
Denis Bilenko authored
we no longer stores test results in a [sqlite] database
-
Denis Bilenko authored
The stdlib tests are now included in the repository. since ubuntu does not ships them in any package. The testrunner is completely rewritten. When testrunner.py was originally written a lot of tests were failing and some of them were hanging. Thus testrunner.py was focused on proving good reports and could retry the tests with a particular test case disabled if it detected time out. Now testrunner is somewhat simpler as we mostly concerned whether the tests pass or not. It also runs the tests concurrently, to improve the speed at which we get the results back from travis-ci. Some tests time execution and assert certain timings, this can fail, especially when the number of workers is bigger than cpu count. The new testrunner will re-try tests that failed in a sequential run, when nothing else is run. If this fixes the problem, the test is reported as "succeeded, but only on the second try" and does reports the whole suite as failed. .travis.yml is fixed to download binary packages for all dependencies and use system python. rename test__benchmarks.py to xtest__benchmarks.py to exclude it form testrunner.py. Exclude test__count from test_thread.py, because it uses function thread._count() we don't implement Run monkey patched tests twice, first with patch_all(), then with patch_all(Event=True)
-
Denis Bilenko authored
-
Denis Bilenko authored
if True, threading.Event is replaced with gevent.event.Event
-
Denis Bilenko authored
Previously this was handled by 'callback' setter, but that one now accepts both callable and None, so we need a separate check for None in start()
-
Denis Bilenko authored
this prevents test__all__.py from failing and prevents monkey from patching it
-
Denis Bilenko authored
(at least on linux)
-
Denis Bilenko authored
that way it does not fail when being used as class member
-
Denis Bilenko authored
-
Denis Bilenko authored
it's always the opposite of _WIN32 this speeds up cythonpp.py part of the build
-
Denis Bilenko authored
For non-network requests, like "localhost", it seems to be quite hard to make gevent.ares to do the right (=compatible with stdlib) thing. So we check if host does not have '.' and if that's the case, we fallback to using threadpool. This covers requests like "localhost", "ip6-localhost" and Python-specific things, like "<broadcast>" It's possible to disable this by passing use_threadpool=False to ResolverAres or by settings resolver.pool = None.
-
Denis Bilenko authored
For string ports (e.g. "http") resolver_ares/getaddrinfo previously only consulted getservbyname(port, "tcp") or getservbyname(port, "udp"), but never both. It seems that checking of both work (and creating result based on that) makes for better compatibility with stock getaddrinfo, at least on linux.
-
- 14 Sep, 2012 6 commits
-
-
Denis Bilenko authored
it is not handled by test__monkey_patching.py
-
Denis Bilenko authored
-
Denis Bilenko authored
-
Denis Bilenko authored
-
Denis Bilenko authored
that way test runner does not fail on ubuntu where this tests are not available a new test__monkey_patching.py is added which runs all stdlib tests
-
Denis Bilenko authored
-