Commit Graph

44 Commits

Author SHA1 Message Date
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
Ben Darnell 4e91f6720b Start using new unittest features from py27/unittest2.
Tornado's test suite now requires unittest2 on py25 and py26.
tornado.testing will use unittest2 if available but does not require
it.

This means we can no longer run the test suite under app engine 2.5,
although it still works for app engine 2.7.
2012-08-30 18:24:49 -04:00
Ben Darnell 3474d5f931 Twisted is dropping python 2.5 support in their upcoming 12.2.0 release. 2012-08-30 13:42:54 -04:00
Ben Darnell ec49816911 Fix str/bytes problems in the auth module on python 3.
In some cases signatures were being computed on str(byte object),
which is incorrect.  Enable python -bb flag to catch this class of
errors and fix up a few more instances.

Fixes #581.
2012-08-11 17:51:27 -07:00
Ben Darnell d37ac92456 Add pypy-full to default envlist too 2012-06-18 00:37:55 -07:00
Ben Darnell a310102c71 Add a pypy-full test configuration.
Pypy compatibility has improved to the point that we can run twisted_test
under it (with one small issue that we can work around).
2012-06-18 00:30:11 -07:00
Ben Darnell 577e9a0c81 Run the tests in optimized mode too to ensure that things still work
without assertions.

Fix one assert that should have been a runtime error (there are probably
more, but this is the only one currently covered by the test suite).
2012-06-13 10:58:15 -07:00
Ben Darnell 53452e8d5a Fight bitrot in tornado.platform.twisted.
A new release of zope.interface breaks things on python 2.5, and
sets off our (overly-sensitive?) deprecation checking.
2012-05-19 14:22:03 -07:00
Ben Darnell 3df46ee312 Merge branch 'branch2.2'
Conflicts:
	setup.py
	tornado/__init__.py
	tornado/test/web_test.py
	tox.ini
	website/sphinx/releases.rst
2012-04-23 22:34:42 -07:00
Ben Darnell c1f72d504f Pin twisted versions in the 2.2 branch to 11.1.0 since that release doesn't
pass its tests with newer versions.
2012-04-23 21:35:15 -07:00
Ben Darnell 983fb8bae8 Open template files in binary mode (to be decoded as utf8 later)
Text mode in python 3 uses an environment-dependent encoding, so
add a test and run it in both C and utf-8 locales.
2012-04-18 21:29:06 -07:00
Ben Darnell e81f42b3cf Add python 3.3 (alpha) to the tox config. 2012-03-24 16:05:11 -07:00
Ben Darnell d1429ff893 Update twisted test blacklist for Twisted 12.0.0 2012-02-20 01:12:27 -08:00
Ben Darnell af940f4e0b Major update to tornado.platform.twisted.
Significantly improved compatibility (most important changes are in
TornadoReactor._invoke_callback) and expanded test coverage.
2012-01-16 23:30:41 -08:00
Ben Darnell 98f77972ae Make it possible to run the test suite with --httpclient=CurlAsyncHTTPClient 2012-01-08 13:49:30 -08:00
Ben Darnell 52c83a4133 Our tests don't work with the recently-released Twisted 11.1.0, so pin
the tests to 11.0.0 until we figure out what's going on.
2011-11-30 23:00:12 -08:00
Ben Darnell 970b43bddf Add configs for testing on Vagrant-managed VMs. 2011-10-07 01:08:14 -07:00
Ben Darnell 1a6dd4c0c9 Reorder tox environments so the most important/likely-to-fail ones run first. 2011-09-10 15:15:31 -07:00
Ben Darnell 225bf2ac1d Remove tox config for pypy with mysql.
The module builds on pypy, but doesn't work (and having it loaded causes
non-deterministic failures in the process-related tests)
2011-08-14 09:53:55 -07:00
Ben Darnell 677c987ad9 Test that tornado.database is at least importable on all supported pythons.
Fix a problem preventing import on pypy (but apparently there are still other
issues with running MySQLdb on pypy, so the module will not actually work yet).
2011-08-02 23:26:50 -07:00
Ben Darnell f376841b2c Add a config file to run tornado tests under multiple python versions with tox.
Also fix a setup.py problem that was leaving files out of the sdist output.
2011-07-17 16:52:56 -07:00