Commit Graph

1108 Commits

Author SHA1 Message Date
Ben Darnell 489997d18d Fix load_gettext_translations on python 3 2012-06-14 01:41:04 -07:00
Ben Darnell 562d9602de Better ($LANG-independent) fix for csv translation loading on py3. 2012-06-14 01:03:17 -07:00
Ben Darnell fb5a62df6c Ignore ImportWarnings in tests.
I can't reproduce this, but apparently in some situations setuptools
throws warnings about unrelated packages, so just turn them all off.

Closes #524
2012-06-14 00:28:15 -07:00
Ben Darnell a0b4260af0 Give test_request_timeout another 10ms slack.
This has been failing a lot on my freebsd VM.
2012-06-13 23:09:15 -07:00
Ben Darnell f48578cce3 Better way to force a getaddrinfo error.
This fixes the tests for users behind misbehaving DNS servers.

Closes #534.
2012-06-13 23:08:06 -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 4c2306093c Replace all assert statements in test code.
Use self.assertFoo where TestCase instances are available, otherwise
raise an exception manually.
2012-06-13 10:42:14 -07:00
bdarnell a303c01acf Merge pull request #532 from splav/master
to_unicode fix in locale.load_translations
2012-06-12 21:57:01 -07:00
Ben Darnell 5f0d4698d2 Rename AsyncSSLTestCase to AsyncHTTPTestCase.
Move get_ssl_version to the httpserver_test subclasses.
Add some quick docs.
2012-06-08 12:04:52 -07:00
Ben Darnell 181fdf5ffb Merge remote-tracking branch 'alekstorm/ssl_test' into merge 2012-06-08 11:50:06 -07:00
Ben Darnell 04c161e8da Merge remote-tracking branch 'alekstorm/httpclient_stack_context' into merge 2012-06-08 11:42:05 -07:00
Ben Darnell 7a2779e958 Add flush method to GzipDecompressor interface and use it. 2012-06-08 11:11:28 -07:00
sergey aleksandrov 6b75758497 python3k to_unicode fix in locale.load_translations 2012-06-08 09:16:21 +04:00
Alek Storm df0998650a Add testing.AsyncSSLTestCase
Allow subclasses of AsyncHTTPTestCase to provide their own http client
and server implementations.
2012-06-07 23:23:04 -04:00
Alek Storm fc0064052e Factor out gzip decompressor from SimpleAsyncHTTPClient into util.GzipDecompressor 2012-06-07 16:43:57 -04:00
Ben Darnell 0b432be307 Use https for all links to github.
Github redirects everything to https anyway, so the links might as well
start out secure.
2012-06-03 17:37:36 -07:00
Ben Darnell 72e1330d3c Update README to match tornadoweb.org 2012-06-03 17:33:30 -07:00
Ben Darnell 3451019e2b Set alarms on child processes in process_test.
These alarms used to be there, but got dropped in a previous change
because I had assumed the child processes would inherit the parent's
alarm.
2012-06-03 13:28:44 -07:00
Ben Darnell efcab59b0b Post-release version bump 2012-06-03 13:26:32 -07:00
Alek Storm 4965811fbc Timeouts in SimpleAsyncHTTPClient now raise HTTPError
Previously, they ran the callbacks themselves.
2012-06-03 15:14:55 -04:00
Ben Darnell 13598908a7 Set version number to 2.3 2012-05-31 21:39:21 -07:00
Ben Darnell be957adf54 Final 2.3 release notes 2012-05-31 21:39:07 -07:00
bdarnell 2321542ca2 Merge pull request #521 from yoinc/master
Restore context for all read methods
2012-05-31 10:46:42 -07:00
Eden Li 4c19333132 Restore context for all read methods.
Prior to 2db0aceb32 this was being done
properly, but the refactor removed stack_context.wrap causing some issues
in our upstream context managers.
2012-05-30 17:35:36 -07:00
Ben Darnell 5cd350ace0 Set version number to 2.3rc1 2012-05-27 22:10:03 -07:00
Ben Darnell a358a73547 Quick hack to make this test pass on cygwin 2012-05-27 22:09:47 -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 0219bd5e1b Doc updates 2012-05-27 20:41:48 -07:00
Ben Darnell c11efb48c4 Release note updates 2012-05-27 20:16:42 -07:00
Ben Darnell af7fb0806d Remove unused variables 2012-05-27 20:11:52 -07:00
Ben Darnell 085f1f19a2 Add future import to this new file for consistency 2012-05-27 20:08:46 -07:00
Ben Darnell dd9a8ac18c Another round of minor whitespace cleanups from autopep8 2012-05-27 20:07:56 -07:00
Ben Darnell 5e514195b1 Remove use of string exceptions in gen_test.
These lines are not reached, but if they were they would fail with
a less clear message than intended.

Closes #520.
2012-05-27 18:37:10 -07:00
Ben Darnell 9118028671 Connection errors can happen here too. 2012-05-27 15:09:52 -07:00
Ben Darnell 330941924b IOStreams now save the exception object that caused them to close.
Closes #494.
2012-05-27 15:04:03 -07:00
Ben Darnell e5d5d3241f Delay check for socket.family (and make it jython-friendly).
Now HTTPConnection.address will always be the socket address,
and the fake "0.0.0.0" IP is only used in contexts that want an IP
(i.e. HTTPRequest.remote_ip) but the connection is a non-IP socket.
2012-05-26 11:35:42 -07:00
bdarnell 7d4623bcca Merge pull request #514 from ahassany/fix-connectin-check
Better connection check in RequestHandler
2012-05-26 11:22:52 -07:00
Ben Darnell 3dcf497f5a Extract constant, add comments 2012-05-26 11:05:16 -07:00
Ben Darnell 227becd6d1 Merge remote-tracking branch 'ei-grad/master' 2012-05-26 10:56:17 -07:00
Ben Darnell f41306da0f Override dict.copy in HTTPHeaders to return the correct type.
Closes #519.
2012-05-26 10:55:06 -07:00
Andrew Grigorev b8e4466146 Split large chunks of data in IOStream.write.
Closes #515.
2012-05-25 19:09:59 +04:00
Ahmed El-Hassany b6ea32d35d Better connection check in RequestHandler 2012-05-24 13:23:34 -04:00
Ben Darnell e101397b36 Ignore any data after the final multipart boundary.
Closes #489.
2012-05-20 23:03:53 -07:00
Ben Darnell 57a3f83fc6 Prevent leak of StackContexts in repeated gen.engine functions.
Internally, StackContexts now return a deactivation callback,
which can be used to prevent that StackContext from propagating
further.  This is used in gen.engine because the decorator doesn't know
which arguments are callbacks that need to be wrapped outside of its
ExceptionStackContext.  This is deliberately undocumented for now.

Closes #507.
2012-05-20 22:08:59 -07:00
Ben Darnell 1be0cc4c2c Release note updates 2012-05-20 17:06:03 -07:00
Ben Darnell 4c6f1137f1 Fix docstring formatting 2012-05-20 16:57:36 -07:00
Ben Darnell e4ee4709db Merge remote-tracking branch 'jjwchoy/master'
Modified linkify to accept a callable for extra_params.

Closes #506.
2012-05-20 16:54:16 -07:00
Ben Darnell b1df663587 304 responses no longer include entity headers like Content-Length
This is required by the RFC as it may confuse caches.
2012-05-20 16:51:02 -07:00
Ben Darnell dd7655964a Add status_code to the OutputTransform.transform_first_chunk interface.
This is needed for correct support of the 304 status code, which
has no body and should not have either a Content-Length or
Transfer-Encoding.  This is a backwards-incompatible change to an
interface that was never technically private, but not included in the
documentation and as far as I can tell was never used outside
tornado itself.
2012-05-20 16:27:28 -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