Commit Graph

52 Commits

Author SHA1 Message Date
Ben Darnell d7d24217b8 Add usage comement to run_fixers.py. 2013-12-31 15:08:50 -05:00
Ben Darnell 647dce9818 Update run_autopep8.sh flags. 2013-12-29 23:43:23 -05:00
Ben Darnell 93714293c0 Upgrade maint/requirements.txt versions. 2013-12-29 23:33:47 -05:00
Ben Darnell a324680856 Point Ubuntu 12.04 Vagrant file to a readily-available base image. 2013-11-06 11:53:00 -05:00
Ben Darnell 4a5fdb1e83 Add backports.ssl_match_hostname dependency in place of our copy.
This function has changed recently and it makes more sense to stop
maintaining a separate copy, even though it does introduce our first
required dependency.
2013-11-05 16:00:42 -05:00
Ben Darnell 9ce47af00c Update autopep8 blacklist 2013-05-27 17:15:24 -04:00
Ben Darnell 86143dfe64 Update development dependency versions. 2013-05-27 17:15:12 -04:00
Ben Darnell c022f7c915 Update redbot tests to work with current versions of redbot. 2013-05-18 19:58:18 -04:00
Ben Darnell 0de3de6ff4 Update pyuv test for latest version of pyuv and tornado-pyuv 2013-04-04 22:30:52 -04:00
Ben Darnell d5426b861c Upgrade requirement packages.
Upgrades are available for tox and virtualenv, but don't work for me
because of https://github.com/pypa/virtualenv/issues/366 (to be fixed
in virtualenv 1.9).
2013-03-02 19:43:59 -05:00
Ben Darnell 80bee0c240 Add IOLoop.run_sync convenience method. 2013-03-02 18:58:02 -05:00
Ben Darnell 4bfbbad331 Fix resolver test script. 2013-03-02 14:45:43 -05:00
Ben Darnell d735bd818a Add a resolver test script for external queries that cannot be unittested.
Note an issue with CaresResolver (it cannot resolve www.dropbox.com when
family==AF_UNSPEC)
2013-02-24 12:56:09 -05:00
Ben Darnell 75176a01eb Add autobahn tests for client side of websockets. 2013-02-17 00:20:01 -05:00
Ben Darnell d98afd41f1 Add a tox config for testing with the pyuv-based IOLoop. 2013-02-13 23:03:25 -05:00
Ben Darnell e7d9e8a5b7 Update pyflakes version.
The new version no longer complains about all our conditional imports.
2013-02-05 19:51:51 -05:00
Ben Darnell fa9534bb1b Add a script for setting up a windows VM for testing.
This works with the images provided by http://modern.ie.
2013-02-02 22:40:53 -05:00
Ben Darnell 60cc236c96 Add vagrant config for ubuntu 12.10.
This release is interesting because it includes a python3 port of
pycurl (which is difficult to use from tox but can at least be tested
manually).
2013-01-23 21:22:34 -05:00
Ben Darnell e582e58792 Update autopep8 to 0.8.5 and run it. 2013-01-19 13:48:02 -05:00
Ben Darnell 7faeeb1537 Remove more py25 testing configs 2013-01-13 21:59:48 -05:00
Ben Darnell 65df55da40 Convert print to a function and add future imports.
Automated with 2to3 and custom fixer.
2to3 -f print tornado > print.diff
2to3 -f print -d tornado > print_doctest.diff
maint/scripts/run_fixers.py -f future_import tornado > future.diff
cd tornado
git apply ../{print,print_doctest,future}.diff
2013-01-13 19:35:04 -05:00
Ben Darnell 8b40fafec7 Add tornado.util.u and a fixer script to start using it. 2013-01-13 18:40:18 -05:00
Ben Darnell 69ead0286c Return a Vary: Accept-Encoding header whenever gzip is enabled.
This is one of two problems found with redbot.  The other,
that etags should change when content-encoding is used, is trickier to
fix and seems to be less problematic.

Closes #578.
2012-12-02 12:42:53 -05:00
Ben Darnell 0b1b515fc6 Add tests using the Redbot library for HTTP validation and caching. 2012-12-02 11:13:42 -05:00
Ben Darnell e4ebf8be14 Add a mock.patch-compatible wrapper for options objects. 2012-12-01 15:50:40 -05:00
Ben Darnell c04005b7ba Fix TwistedIOLoop on epoll.
Twisted's removeAll doesn't like it if a socket is closed without being
unregistered.  EPoll generates events slightly differently so be more
careful about doubled connectionLost events.
2012-10-07 16:59:36 -07:00
Ben Darnell 8b32830d73 Move IOLoop subclasses to their own modules under platform. 2012-10-06 21:11:54 -07:00
Ben Darnell 3747af59cb Add futures to travis and vm tests, update assorted dependency versions. 2012-09-29 17:47:41 -07:00
Ben Darnell 186e947112 Remove tornado.database, which is now distributed separately. 2012-09-16 14:02:49 -07:00
Ben Darnell 5b7ebadd1b Add unittest2 to other test configurations. 2012-09-05 17:54:21 -07: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 73c1ddfe2b Move maint/appengine to maint/test/appengine 2012-08-30 14:41:24 -04:00
Ben Darnell 0148fda37b Autobahn websocket test has moved to a separate package. 2012-08-29 13:33:00 -04:00
Ben Darnell 0cb3924a9e Don't let autopep8 rewrite all the lines longer than 80 chars. 2012-08-27 17:31:47 -04:00
Ben Darnell 685a4cd99c Update docutils dependency version.
0.9 doesn't appear to be in pypi any more.
2012-08-13 10:06:10 -07:00
Ben Darnell ae3d20f57f Update dependency versions 2012-06-14 21:29:21 -07:00
Ben Darnell 67d69340a2 Fix zope.interface/py25 dependencies for other tox.ini files 2012-05-27 21:35:27 -07:00
Ben Darnell 50244877b5 Ubuntu 12.04 is out, so add a vagrant config for it.
Replace the 11.04 config, but keep 10.04 to cover the two LTS releases.
2012-04-27 20:50:01 -07:00
Ben Darnell 5ae39bc6d1 Update vagrant configs for vagrant 1.0 2012-04-23 01:12:09 -07:00
Ben Darnell 2d665a41b0 Check in autopep8 script 2012-02-09 01:08:04 -08:00
Ben Darnell 58a7ff10a8 Turn on __future__ division too.
All existing uses of division were already using a float for at least
one operand (except the tests that just do 1/0 as a quick way to throw
an exception).

We have now turned on all the __future__ options available in python2.5.
2012-02-09 00:17:58 -08:00
Ben Darnell 27f9c3a775 Add a script to rewrite __future__ imports 2012-02-08 23:16:56 -08:00
Ben Darnell 5a18d50f44 Disable slow websocket performance tests by default.
Add pypy to the mix for when we do run the perf tests.  Depending on
the benchmark pypy is ~twice as fast as cpython 2.7
2012-01-21 17:12:22 -08:00
Ben Darnell 1014d5683e Check in a requirements file for the tools I use while working on tornado. 2012-01-21 14:35:21 -08:00
Ben Darnell 26a06a0b16 Add a new(er) ubuntu vm setup to test missing SSLv2 2012-01-10 10:26:15 -08:00
Ben Darnell 33cd3456d5 Add an explicit binary option to WebSocketHandler.write_message.
Switching automatically based on python's bytes vs unicode types is
error-prone in python2 where e.g. json_encode returns bytes.

Closes #429.
2012-01-07 17:34:48 -08:00
Ben Darnell 0b31d8de4c bytearray is a 2.6ism; use array.array("B") instead for 2.5 compatibility. 2011-12-30 14:47:21 -08:00
Ben Darnell 34b59827c9 Add websocket conformance tests using autobahn 2011-12-30 12:53:11 -08:00
Ben Darnell 877aa9d861 Install more python versions in the linux VM so we can test epoll.c too.
Also fix a bug in the test for python 2.5 on systems where ipv6 is not
configured (socket.gaierror didn't have an `errno` attribute until 2.6)
2011-12-30 00:49:19 -08:00
Ben Darnell e7a47e7b6f Improve app engine tests now that SDK 1.6.1 is compatible with virtualenv 2011-12-15 22:57:20 -08:00