Ben Darnell
2caffda74a
Enable test runs on py35
2015-08-02 21:44:46 -04:00
Ben Darnell
b93b8405b3
Make many doc code blocks into sphinx doctests.
2015-02-09 00:19:47 -05:00
Ben Darnell
0f1c6eec62
Enable the sphinx doctest extension.
2015-02-08 16:09:00 -05:00
Ben Darnell
841b2d4de3
Singledispatch and twisted don't work well together on py26.
...
Only install singledispatch on py27.
2015-01-19 13:50:12 -05:00
Ben Darnell
d6a940924b
Use functools.singledispatch for convert_yielded when available.
...
Register a converter for asyncio.Future and add tests.
2015-01-19 10:12:56 -05:00
Marc Schlaich
4d09030b20
tox: add optional pyxx-no-ext environments
...
These can be run on systems without an available C compiler.
2014-12-12 08:31:13 +01:00
Ben Darnell
34dbe87d8c
Fix byte strings as header values in curl_httpclient and python3.
...
Add the -bb flag to all py3 tests, which uncovered this bug.
2014-10-11 11:47:03 -04:00
Ben Darnell
ea943e325a
Streamline tox configuration using new features in tox 1.8.
2014-10-11 11:47:03 -04:00
Ben Darnell
625bb0e075
Install sphinx_rtd_theme when running sphinx tests.
2014-07-12 23:07:01 -04:00
Ben Darnell
fb246549af
Add pypy3 to tox.ini.
2014-06-21 12:47:40 -04:00
Ben Darnell
53e4bad98d
Add threadedresolver configuration to tox.ini (it was already in travis)
2014-06-01 18:45:10 -04:00
Ben Darnell
12ba59f967
Run the sphinx tests under py3.4 instead of py2.7.
2014-05-25 23:03:13 -04:00
Ben Darnell
e777e6fd6a
Add TwistedIOLoop test on python 3 to tox and travis.
2014-05-25 00:48:15 -04:00
Ben Darnell
db91773328
Use Resolver instead of socket.getaddrinfo to decide whether localhost is ipv6.
...
The results can differ with different resolvers. Add a CaresResolver
configuration to tox (it was already in travis).
2014-05-18 20:34:30 -04:00
Ben Darnell
00d9ac38ab
Twisted 14.0.0 is now (partially) installable on python 3, so test with it.
...
Consolidate the dependency section of the .travis.yml now that more of our
dependencies are cross-version.
2014-05-13 10:39:26 -04:00
Ben Darnell
99474fe89b
Refactor unittest/unittest2 imports to fix issues with unittest2 on py3.
...
Never use unittest2 on python 3 (it appears to not interoperate with
the standard unittest module). On python 2, use the same logic in
tornado.testing and tornado.test.util to select an implementation.
Fixes #1005 .
2014-03-15 00:46:52 -04:00
Ben Darnell
1eb003f2da
Add python 3.4 tests to tox
2014-02-18 00:08:09 -05:00
Ben Darnell
f2cae31d18
Add a py26-trollius test case and fix a bug with timedelta on 2.6.
2014-02-16 23:41:15 -05:00
Ben Darnell
43f2f4c4c8
Pin sphinx version to 1.2 in tests.
...
Sphinx 1.2.1 has a bug that breaks our build:
https://bitbucket.org/birkenfeld/sphinx/pull-request/212/fix-an-exception-introduced-by/diff
2014-01-20 11:57:16 -05:00
Ben Darnell
665bd981df
Remove some vestigial references to 2to3.
2014-01-19 18:55:53 -05:00
Ben Darnell
7552caed99
Allow and encourage the use of file objects instead of integer fds in IOLoop.
...
This fixes a problem in tests in which a closing IOLoop would os.close()
all of its file descriptors while socket objects for those fds still
existed. When those socket objects were garbage collected, they would
close the fd a second time (by which time it may have been reassigned
to a new socket).
Due to subtleties of garbage collection this has only been observed
with the asyncio event loop in tests of curl_httpclient.
2014-01-18 13:09:18 -05:00
Ben Darnell
f52976ae24
Add pycares to the -full tox configs and remove custom resolver tests.
...
The resolvers are tested in netutil_test when their dependencies are
available, and re-running the entire test suite with a different resolver
is unlikely to expose any new problems. (the resolver tests are still
present in travis.yml for now, though)
2014-01-17 20:57:57 -05:00
Ben Darnell
fda31703c2
Require the extension to be built in tox -full runs.
2014-01-16 23:33:00 -05:00
Ben Darnell
5a9194f7f3
Refactor the unwieldy tox.ini file.
...
Fill in some gaps in the coverage (mostly on the python 3 side, and
using more consistent dependencies throughout) and move the 3.x tests
that don't care about a specific 3.x version to 3.3.
This is still less thorough than the travis.yml, which runs everything for
every python version.
2014-01-14 23:16:26 -05:00
Ben Darnell
db93108daa
Now that pycurl 7.19.3 with py3 support is out, add it to tox/travis.
2014-01-10 23:19:25 -05:00
Ben Darnell
2b9f7925d3
Add trollius (py2 backport of asyncio) to tox config.
...
This passes the twisted integration tests but currently has some issues
with pycurl.
2014-01-07 01:14:37 -05:00
Ben Darnell
0f6caf59e1
Disable --pre flag in tox installs to fix environment recreation.
...
Remove an old hack for monotime package.
2013-12-30 11:32:38 -05:00
Ben Darnell
0ca7fa01d1
Replace cython-based extension module with a hand-written one.
...
This avoids the complexity of ensuring that cython is installed
at build time.
2013-11-05 17:58:31 -05:00
Ben Darnell
e8dc5e427d
Add cython-based speedup for websocket mask function.
...
This optimization is currently activated only if Cython is present
when Tornado is installed.
2013-10-26 22:13:14 -04:00
Ben Darnell
0d0f583544
Add a tox config for the py33 backport of asyncio.
...
Update some old comments.
2013-10-26 20:00:27 -04:00
Ben Darnell
eea50c08ce
Update twisted test blacklist for the newly-released 13.1.0.
2013-06-30 20:25:16 -04:00
Ben Darnell
d2e57a336d
Revert change to use time.strftime (from 3.0).
...
time.strftime is influenced by the user's locale (if one is set with
locale.setlocale), so it's not what we want. Go back to the (slower)
email.utils functions.
Fixes #800 .
2013-05-24 00:48:44 -04:00
Ben Darnell
5037e3238b
Add py27-docs to tox envlist.
2013-05-24 00:19:46 -04:00
Ben Darnell
a0c4003a17
Fix a dangling doc reference, and add a doc check to tox and travis.
2013-05-23 22:57:27 -04:00
Ben Darnell
7431ffe1a0
Fix TwistedIOLoop on python 2.6.
2013-03-08 19:03:49 -05:00
Ben Darnell
b02c202b92
Add a c-ares-based resolver implementation.
2013-02-24 12:25:04 -05:00
Ben Darnell
0e44baf700
Add a test that runs TwistedIOLoop on top of TornadoReactor.
...
This exposed a few more small bugs.
2013-02-23 18:46:08 -05:00
Ben Darnell
57130dfbc2
Add TwistedResolver for non-threaded async DNS resolution.
2013-02-23 15:19:04 -05:00
Ben Darnell
21acd099a7
Make Resolver Configurable and test with a threaded resolver.
2013-02-17 23:12:15 -05:00
Ben Darnell
5cb63c9ca8
Drop py25 from the main tox.ini
2013-01-13 18:40:17 -05:00
Ben Darnell
a8cb0ee56a
Test with twisted 12.3
2012-12-27 15:50:53 +01:00
Ben Darnell
e4ebf8be14
Add a mock.patch-compatible wrapper for options objects.
2012-12-01 15:50:40 -05:00
Ben Darnell
3654790fcb
Implement TwistedIOLoop, to bridge the gap with Twisted in the other direction.
...
This also serves as a proof of concept for the refactored IOLoop interface.
2012-10-07 16:11:43 -07:00
Ben Darnell
8b32830d73
Move IOLoop subclasses to their own modules under platform.
2012-10-06 21:11:54 -07:00
Ben Darnell
20deb5ca61
Add time_func parameter to IOLoop, and make it possible to use time.monotonic.
...
This means that calls to IOLoop.add_timeout that pass a number must be
updated to use IOLoop.time instead of time.time.
There are still some places where we use time.time in the code, but they
are either places where wall time is desired, or non-critical deltas (e.g.
printing elapsed time at the end of a request).
Thanks to apenwarr and mgenti for pull requests and discussion relating to
this change. (#558 and #583 )
2012-10-01 00:07:28 -07:00
Ben Darnell
469e227402
IOLoop poller implementations are now subclasses of IOLoop.
...
Update testing command-line flags to allow configuration of a non-default
IOLoop.
2012-09-30 23:07:51 -07:00
Ben Darnell
541160cb8f
Drop twisted tests from pypy-full configuration.
...
These tests seem to fail much more often on the futures branch than
master for some unknown reason. (the failures are in the
subprocess-related tests)
2012-09-29 16:35:57 -07:00
Ben Darnell
aaf8c3687e
Merge branch 'master' into futures
...
Conflicts:
tornado/autoreload.py
tornado/ioloop.py
tornado/netutil.py
tornado/simple_httpclient.py
tornado/test/ioloop_test.py
tornado/test/runtests.py
tox.ini
2012-09-29 15:55:47 -07:00
Ben Darnell
186e947112
Remove tornado.database, which is now distributed separately.
2012-09-16 14:02:49 -07:00
Ben Darnell
eef8d9ffc4
Add concurrent.futures as an optional dependency for -full builds
2012-08-30 21:55:34 -04:00