]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
12 years agoAdd an example for flags 593/head
Philipp Hagemeister [Tue, 4 Sep 2012 15:04:47 +0000 (17:04 +0200)] 
Add an example for flags

12 years agoDo not set AI_ADDRCONFIG in netutil.bind_sockets
Philipp Hagemeister [Tue, 4 Sep 2012 10:34:00 +0000 (12:34 +0200)] 
Do not set AI_ADDRCONFIG in netutil.bind_sockets

12 years agoAdd a flags= option to netutil.bind_sockets
Philipp Hagemeister [Tue, 4 Sep 2012 10:33:38 +0000 (12:33 +0200)] 
Add a flags= option to netutil.bind_sockets

12 years agoMerge pull request #591 from taylorhughes/master 500/head
bdarnell [Sat, 1 Sep 2012 21:30:55 +0000 (14:30 -0700)] 
Merge pull request #591 from taylorhughes/master

Change example to not include legit-random-looking cookie secrets

12 years agoMake it obvious to anyone reading copy-pasted example code that the cookie secret... 591/head
Taylor Hughes [Sat, 1 Sep 2012 06:47:11 +0000 (23:47 -0700)] 
Make it obvious to anyone reading copy-pasted example code that the cookie secret is not suitable for production use.

12 years agoMake it obvious to anyone reading copy-pasted example code that the cookie secret...
Taylor Hughes [Sat, 1 Sep 2012 06:46:56 +0000 (23:46 -0700)] 
Make it obvious to anyone reading copy-pasted example code that the cookie secret is not suitable for production use.

12 years agoTwisted is dropping python 2.5 support in their upcoming 12.2.0 release.
Ben Darnell [Thu, 30 Aug 2012 17:42:54 +0000 (13:42 -0400)] 
Twisted is dropping python 2.5 support in their upcoming 12.2.0 release.

12 years agoAutobahn websocket test has moved to a separate package.
Ben Darnell [Wed, 29 Aug 2012 17:33:00 +0000 (13:33 -0400)] 
Autobahn websocket test has moved to a separate package.

12 years agoFix tests on windows
Ben Darnell [Tue, 28 Aug 2012 19:24:55 +0000 (15:24 -0400)] 
Fix tests on windows

12 years agoAdd link to new settings docs in release notes
Ben Darnell [Tue, 28 Aug 2012 17:43:13 +0000 (13:43 -0400)] 
Add link to new settings docs in release notes

12 years agoOrganize next-release notes.
Ben Darnell [Mon, 27 Aug 2012 23:18:38 +0000 (19:18 -0400)] 
Organize next-release notes.

12 years agoDocument all available application settings.
Ben Darnell [Mon, 27 Aug 2012 22:56:34 +0000 (18:56 -0400)] 
Document all available application settings.

12 years agoFill in missing docs and other minor doc updates.
Ben Darnell [Mon, 27 Aug 2012 21:49:20 +0000 (17:49 -0400)] 
Fill in missing docs and other minor doc updates.

12 years agoRun twisted tests in a temporary directory so they don't leak temp files.
Ben Darnell [Mon, 27 Aug 2012 21:45:50 +0000 (17:45 -0400)] 
Run twisted tests in a temporary directory so they don't leak temp files.

This mainly affected the unix socket tests.

12 years agoAutopep8 cleanups.
Ben Darnell [Mon, 27 Aug 2012 21:33:01 +0000 (17:33 -0400)] 
Autopep8 cleanups.

12 years agoDon't let autopep8 rewrite all the lines longer than 80 chars.
Ben Darnell [Mon, 27 Aug 2012 21:30:06 +0000 (17:30 -0400)] 
Don't let autopep8 rewrite all the lines longer than 80 chars.

12 years agoRelease note updates
Ben Darnell [Mon, 27 Aug 2012 17:43:13 +0000 (10:43 -0700)] 
Release note updates

12 years agoFix template errors with empty blocks.
Ben Darnell [Mon, 27 Aug 2012 01:03:12 +0000 (18:03 -0700)] 
Fix template errors with empty blocks.

Emits a "pass" statement in every generated block whether it's empty or not;
I verified with the disassembler that the unnecessary pass statements
don't generate extra bytecodes.

Closes #546.

12 years agoRefactor template namespace from render_string to its own method.
Ben Darnell [Mon, 27 Aug 2012 00:43:38 +0000 (17:43 -0700)] 
Refactor template namespace from render_string to its own method.

This method may be overridden as an alternative to overriding render_string
and adding to kwargs, or may be used directly to render templates
without going through render_string (as when templates are constructed
directly; see https://github.com/facebook/tornado/issues/564)

12 years agoMake the openid claimed_id available in OpenIDMixin
Ben Darnell [Sun, 26 Aug 2012 23:45:35 +0000 (16:45 -0700)] 
Make the openid claimed_id available in OpenIDMixin

This should be used as a persistent identifier for the user
since it is the only field guaranteed not to change.

Closes #568.

12 years agoMake authdemo's logout less confusing.
Ben Darnell [Sun, 26 Aug 2012 23:23:30 +0000 (16:23 -0700)] 
Make authdemo's logout less confusing.

Closes #376.

12 years agoRelease note updates
Ben Darnell [Sat, 25 Aug 2012 03:26:46 +0000 (20:26 -0700)] 
Release note updates

12 years agoFix test for pre-2.7 assertions
Ben Darnell [Mon, 20 Aug 2012 02:31:15 +0000 (19:31 -0700)] 
Fix test for pre-2.7 assertions

12 years agoMerge remote-tracking branch 'evanj/master' into merge
Ben Darnell [Mon, 20 Aug 2012 02:20:58 +0000 (19:20 -0700)] 
Merge remote-tracking branch 'evanj/master' into merge

12 years agoWhen closing an HTTPConnection, also clear a circular reference to self.
Ben Darnell [Mon, 20 Aug 2012 02:02:56 +0000 (19:02 -0700)] 
When closing an HTTPConnection, also clear a circular reference to self.

This reference could cause garbage collection of the connection object
to be delayed.

Closes #586.

12 years agoAllow calls to SSLIOStream.write while the connection is in progress.
Ben Darnell [Sun, 19 Aug 2012 19:16:15 +0000 (12:16 -0700)] 
Allow calls to SSLIOStream.write while the connection is in progress.

Skip fast-path writes while connecting, and rework the interaction
between base class and subclass to avoid the possibility of doubly-wrapped
sockets.

Closes #587.

12 years agoReorganize IOStream tests and run them in both regular and ssl mode.
Ben Darnell [Sun, 19 Aug 2012 05:56:14 +0000 (22:56 -0700)] 
Reorganize IOStream tests and run them in both regular and ssl mode.

In the process, discover a quirk of the server-side SSL handshake and
a possible bug with ssl in pypy.

12 years agoAdd binary_form argument to get_ssl_certificate.
Ben Darnell [Sun, 19 Aug 2012 02:39:57 +0000 (19:39 -0700)] 
Add binary_form argument to get_ssl_certificate.

The default form contains only basic information; the binary form is more
complete.

12 years agoTest cleanup.
Ben Darnell [Wed, 15 Aug 2012 17:38:09 +0000 (10:38 -0700)] 
Test cleanup.

Listen on 127.0.0.1 to avoid firewall warnings. Move to AsyncHTTPTestCase
to reduce boilerplate.  Close a leaking file descriptor (ResourceWarnings
are still just printing out instead of making the tests fail)

12 years agoMerge remote-tracking branch 'bergundy/upstream'
Ben Darnell [Wed, 15 Aug 2012 17:22:12 +0000 (10:22 -0700)] 
Merge remote-tracking branch 'bergundy/upstream'

12 years agoadded b() to string assertion in simple_httpclient_test:HTTP100ContinueTestCase ... 575/head
Roey Berman [Wed, 15 Aug 2012 11:48:20 +0000 (14:48 +0300)] 
added b() to string assertion in simple_httpclient_test:HTTP100ContinueTestCase (python3)

12 years agoadded b to stream write (for passing python3 tests
Roey Berman [Wed, 15 Aug 2012 11:36:51 +0000 (14:36 +0300)] 
added b to stream write (for passing python3 tests

12 years agoignore 1xx headers prev commit was incomplete, fixed
Roey Berman [Wed, 15 Aug 2012 11:15:31 +0000 (14:15 +0300)] 
ignore 1xx headers prev commit was incomplete, fixed

12 years agoBlacklist a few more twisted tests that seem flaky
Ben Darnell [Mon, 13 Aug 2012 17:06:48 +0000 (10:06 -0700)] 
Blacklist a few more twisted tests that seem flaky

12 years agoUpdate docutils dependency version.
Ben Darnell [Mon, 13 Aug 2012 17:06:10 +0000 (10:06 -0700)] 
Update docutils dependency version.

0.9 doesn't appear to be in pypi any more.

12 years agoFix str/bytes problems in the auth module on python 3.
Ben Darnell [Sun, 12 Aug 2012 00:51:27 +0000 (17:51 -0700)] 
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.

12 years agoRemove httpclient max_simultaneous_connections argument.
Ben Darnell [Sat, 11 Aug 2012 19:42:49 +0000 (12:42 -0700)] 
Remove httpclient max_simultaneous_connections argument.

This argument doesn't do anything in modern versions of libcurl,
and is confusingly similar to max_clients.

12 years agoMerge branch 'branch2.3'
Ben Darnell [Sat, 11 Aug 2012 19:27:23 +0000 (12:27 -0700)] 
Merge branch 'branch2.3'

12 years agoUpdate doc examples for xsrf_form_html.
Ben Darnell [Sat, 11 Aug 2012 19:14:09 +0000 (12:14 -0700)] 
Update doc examples for xsrf_form_html.

{% module %} or {% raw %} must be used now due to auto-escaping.

12 years agoLatex output file must end in .tex
Ben Darnell [Sat, 11 Aug 2012 19:09:57 +0000 (12:09 -0700)] 
Latex output file must end in .tex

12 years agoAdd latex_documents configuration so readthedocs can build pdfs of the docs.
Ben Darnell [Sat, 11 Aug 2012 16:07:33 +0000 (09:07 -0700)] 
Add latex_documents configuration so readthedocs can build pdfs of the docs.

12 years agoLatex output file must end in .tex
Ben Darnell [Sat, 11 Aug 2012 19:09:57 +0000 (12:09 -0700)] 
Latex output file must end in .tex

12 years agoAdd latex_documents configuration so readthedocs can build pdfs of the docs.
Ben Darnell [Sat, 11 Aug 2012 16:07:33 +0000 (09:07 -0700)] 
Add latex_documents configuration so readthedocs can build pdfs of the docs.

13 years agoFire shutdown event from main loop 574/head
Stiletto [Mon, 6 Aug 2012 15:43:27 +0000 (19:43 +0400)] 
Fire shutdown event from main loop

13 years agoFixed shutdown sequence in twisted reactor
Stiletto [Mon, 30 Jul 2012 20:25:04 +0000 (00:25 +0400)] 
Fixed shutdown sequence in twisted reactor

13 years agosimple_httpclient: Report errno and reason for connection errors. 577/head
Evan Jones [Thu, 2 Aug 2012 15:13:58 +0000 (11:13 -0400)] 
simple_httpclient: Report errno and reason for connection errors.

Previously, this reported "Connection closed" for everything. This change
adds the exception info: HTTP 599: [Errno 61] Connection refused

13 years agosimple_httpclient: ignore 1xx headers
Roey Berman [Tue, 31 Jul 2012 14:43:12 +0000 (17:43 +0300)] 
simple_httpclient: ignore 1xx headers

13 years agoMerge pull request #573 from ewdurbin/master
bdarnell [Tue, 31 Jul 2012 11:17:47 +0000 (04:17 -0700)] 
Merge pull request #573 from ewdurbin/master

Allow 'oob' as a callback_uri per OAuth spec section 2.1

13 years agoiostream_test: moved the server.close() call from write the after write callback...
Roey Berman [Mon, 30 Jul 2012 10:37:17 +0000 (13:37 +0300)] 
iostream_test: moved the server.close() call from write the after write callback to just before the second read_until().

13 years agomore oob changes 573/head
Ernest W. Durbin III [Mon, 30 Jul 2012 15:16:56 +0000 (11:16 -0400)] 
more oob changes

13 years agoMerge pull request #569 from MartinMartimeo/patch-1
bdarnell [Sun, 29 Jul 2012 15:45:20 +0000 (08:45 -0700)] 
Merge pull request #569 from MartinMartimeo/patch-1

Adding super(...).__init__ in web.py

13 years agoOmitting super(...).__init__() causes python, when RequestHandler is extended with... 569/head
MartinMartimeo [Sat, 21 Jul 2012 19:55:38 +0000 (22:55 +0300)] 
Omitting super(...).__init__() causes python, when RequestHandler is extended with multiple class inheritance, to not execute all __init__ methods of all super classes.

13 years agoMerge pull request #560 from ei-grad/master
bdarnell [Sat, 14 Jul 2012 17:56:03 +0000 (10:56 -0700)] 
Merge pull request #560 from ei-grad/master

[trivial] Output a peer name to log message on ssl errors

13 years agoFixed and added regression test for a bug that was introduced in 2.3
Roey Berman [Thu, 12 Jul 2012 16:57:38 +0000 (19:57 +0300)] 
Fixed and added regression test for a bug that was introduced in 2.3
where the IOStream._close_callback would never be
called if there were pending reads.

(Cherry-picked from https://github.com/facebook/tornado/pull/561 with
amendments for compatibility with python 2.5-2.6 -bdarnell)

Closes #561.

13 years agoformatting 560/head
Andrew Grigorev [Mon, 9 Jul 2012 11:17:07 +0000 (15:17 +0400)] 
formatting

13 years agooutput a peer name to log message on ssl errors
Andrew Grigorev [Mon, 9 Jul 2012 10:47:51 +0000 (14:47 +0400)] 
output a peer name to log message on ssl errors

13 years agoMerge pull request #557 from raullenchai/master
bdarnell [Wed, 4 Jul 2012 06:03:05 +0000 (23:03 -0700)] 
Merge pull request #557 from raullenchai/master

Fix handling of a limited form of secure_cookie tampering

13 years agoFix sphinx formatting of new docstring
Ben Darnell [Wed, 4 Jul 2012 05:24:28 +0000 (22:24 -0700)] 
Fix sphinx formatting of new docstring

13 years agoMerge pull request #556 from yoinc/master
bdarnell [Wed, 4 Jul 2012 05:19:51 +0000 (22:19 -0700)] 
Merge pull request #556 from yoinc/master

Forward testing.main kwargs to unittest.main

13 years agoreturn None when a secure-cookie is forged 557/head
Raullen [Tue, 3 Jul 2012 00:28:44 +0000 (17:28 -0700)] 
return None when a secure-cookie is forged

13 years agoForward testing.main kwargs to unittest.main 556/head
Joey Liaw [Fri, 15 Jun 2012 01:27:40 +0000 (18:27 -0700)] 
Forward testing.main kwargs to unittest.main

13 years agoDisallow multiple calls to add_handler for the same fd in IOLoop.
Ben Darnell [Fri, 29 Jun 2012 07:53:22 +0000 (00:53 -0700)] 
Disallow multiple calls to add_handler for the same fd in IOLoop.

This was already true for epoll; this change adds a check for
kqueue and select implementations.

13 years agoMerge pull request #551 from minrk/reuseaddr
bdarnell [Fri, 29 Jun 2012 06:57:11 +0000 (23:57 -0700)] 
Merge pull request #551 from minrk/reuseaddr

Don't set SO_REUSEADDR on Windows

13 years agoMerge pull request #547 from evanj/master
bdarnell [Fri, 29 Jun 2012 06:54:04 +0000 (23:54 -0700)] 
Merge pull request #547 from evanj/master

Detect SSL option errors at start up

13 years agoMerge pull request #552 from vigasin/master
bdarnell [Fri, 29 Jun 2012 06:53:22 +0000 (23:53 -0700)] 
Merge pull request #552 from vigasin/master

Fix SSL error handling bug that could result in 100% cpu usage.

Possibly platform-specific; observed on windows.

13 years agoUse non-deprecated zope.interface methods in twisted bridge.
Ben Darnell [Fri, 29 Jun 2012 06:50:23 +0000 (23:50 -0700)] 
Use non-deprecated zope.interface methods in twisted bridge.

13 years agoskip EXCLUSIVEADDRUSE on Windows 551/head
MinRK [Thu, 28 Jun 2012 18:29:05 +0000 (11:29 -0700)] 
skip EXCLUSIVEADDRUSE on Windows

13 years agoFix ssl socket error handling. 552/head
Ivan Vigasin [Thu, 28 Jun 2012 16:01:34 +0000 (20:01 +0400)] 
Fix ssl socket error handling.

13 years agoTCPServer: Do some validation of ssl_options 547/head
Evan Jones [Tue, 26 Jun 2012 16:17:13 +0000 (12:17 -0400)] 
TCPServer: Do some validation of ssl_options

Previously, errors aren't detected until a client connects.

13 years agoset SO_EXCLUSIVEADDRUSER on Windows instead of SO_REUSEADDR
MinRK [Thu, 28 Jun 2012 04:08:12 +0000 (21:08 -0700)] 
set SO_EXCLUSIVEADDRUSER on Windows instead of SO_REUSEADDR

closes #550

13 years agoFix (and test and document) logging on py2 with non-ascii bytestrings.
Ben Darnell [Wed, 27 Jun 2012 07:02:58 +0000 (00:02 -0700)] 
Fix (and test and document) logging on py2 with non-ascii bytestrings.

The immediate motivation was an error in request logging when the
request contains non-ascii characters, but a more general fix is
desirable since there are probably more cases where we log utf8 byte
strings, and in general a logging system that blows up on data that
has a perfectly useful representation is not ideal.

Closes #544.

13 years agoMerge pull request #549 from polymorphm/bugfix_stack_context_wrap_kwargs
bdarnell [Wed, 27 Jun 2012 04:04:44 +0000 (21:04 -0700)] 
Merge pull request #549 from polymorphm/bugfix_stack_context_wrap_kwargs

tornado.stack_context.wrap must not to restrict kwargs for function

13 years agofixed the bug that tornado.stack_context.wrap restricts kwargs for function 549/head
Andrej A Antonov [Wed, 27 Jun 2012 01:18:54 +0000 (05:18 +0400)] 
fixed the bug that tornado.stack_context.wrap restricts kwargs for function

13 years agoTests and docs for break/continue in templates
Ben Darnell [Mon, 25 Jun 2012 02:52:53 +0000 (19:52 -0700)] 
Tests and docs for break/continue in templates

13 years agoAdd continue and break statement support in while and for loop for template
Felinx Lee [Tue, 19 Jun 2012 03:25:51 +0000 (11:25 +0800)] 
Add continue and break statement support in while and for loop for template

13 years agoMerge pull request #530 from alekstorm/body_args
bdarnell [Mon, 25 Jun 2012 02:09:31 +0000 (19:09 -0700)] 
Merge pull request #530 from alekstorm/body_args

Factored out body argument-parsing code into httputil.parse_body_arguments

13 years agoEncourage "python -m tornado.test.runtests" as the way to run the tests.
Ben Darnell [Mon, 25 Jun 2012 01:41:11 +0000 (18:41 -0700)] 
Encourage "python -m tornado.test.runtests" as the way to run the tests.

Remove execute bit from tornado/test/runtests.py, which would unexpectedly
run the tests from a globally-installed version of tornado when run directly.
Add a new runtests.sh to make the recommended behavior more discoverable.
Remove run_pyversion_tests.py, which has been superceded by tox.
Update docs.

Closes #545.

13 years agoAdd pypy-full to default envlist too
Ben Darnell [Mon, 18 Jun 2012 07:37:55 +0000 (00:37 -0700)] 
Add pypy-full to default envlist too

13 years agoAdd a pypy-full test configuration.
Ben Darnell [Mon, 18 Jun 2012 07:30:11 +0000 (00:30 -0700)] 
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).

13 years agoGet rid of test_sslv2_fail.
Ben Darnell [Mon, 18 Jun 2012 06:04:56 +0000 (23:04 -0700)] 
Get rid of test_sslv2_fail.

This test is more trouble than it's worth since many distributions have
hacked sslv2 support out of their builds in various ways, and at least
one (python 2.6 on ubuntu 11.10, which happens to be the platform used
on travis-ci) has a bug that results in a segfault, killing the whole
test process.

13 years agoRun some (synchronous) web.py tests via wsgi too.
Ben Darnell [Mon, 18 Jun 2012 05:57:23 +0000 (22:57 -0700)] 
Run some (synchronous) web.py tests via wsgi too.

There's probably a more principled way to do this, but for now just port
this batch of tests, which would have caught the add_header bug from
the previous commit, and uncovered an encoding problem on python 3.

13 years agoMerge pull request #540 from zhuzhuor/master
bdarnell [Mon, 18 Jun 2012 04:48:09 +0000 (21:48 -0700)] 
Merge pull request #540 from zhuzhuor/master

fix RequestHandler.add_header() for WSGIApplication

13 years agofixed the bug that RequestHandler.add_header doesn't work for WSGI applications 540/head
Bo Zhu [Mon, 18 Jun 2012 02:30:29 +0000 (22:30 -0400)] 
fixed the bug that RequestHandler.add_header doesn't work for WSGI applications

13 years agoMerge pull request #539 from msabramo/travis-py26-allow-failure
bdarnell [Sun, 17 Jun 2012 21:45:45 +0000 (14:45 -0700)] 
Merge pull request #539 from msabramo/travis-py26-allow-failure

Enhance the set of configurations tested by Travis CI

13 years ago.travis.yml: Test py32 with LANG=C and LANG=en_US.utf-8 539/head
Marc Abramowitz [Sun, 17 Jun 2012 07:30:31 +0000 (00:30 -0700)] 
.travis.yml: Test py32 with LANG=C and LANG=en_US.utf-8

13 years ago.travis.yml: Test with more full dependencies using "matrix: include:"
Marc Abramowitz [Sun, 17 Jun 2012 07:07:37 +0000 (00:07 -0700)] 
.travis.yml: Test with more full dependencies using "matrix: include:"
feature of .travis.yml

13 years agoAdd py25 (depends on simplejson) to .travis.yml
Marc Abramowitz [Sun, 17 Jun 2012 06:58:54 +0000 (23:58 -0700)] 
Add py25 (depends on simplejson) to .travis.yml

13 years agoAdd pypy to .travis.yml
Marc Abramowitz [Sun, 17 Jun 2012 06:56:42 +0000 (23:56 -0700)] 
Add pypy to .travis.yml

13 years agoAdd py26 back but make it an allowable failure
Marc Abramowitz [Sun, 17 Jun 2012 06:46:03 +0000 (23:46 -0700)] 
Add py26 back but make it an allowable failure

13 years agoMerge pull request #536 from evanj/master
bdarnell [Fri, 15 Jun 2012 04:40:42 +0000 (21:40 -0700)] 
Merge pull request #536 from evanj/master

Documentation fixes: auto-reloading

13 years agoUpdate dependency versions
Ben Darnell [Fri, 15 Jun 2012 04:29:21 +0000 (21:29 -0700)] 
Update dependency versions

13 years agoDocumentation: Application(debug=True); autoreload limitations. 536/head
Evan Jones [Thu, 14 Jun 2012 19:34:42 +0000 (15:34 -0400)] 
Documentation: Application(debug=True); autoreload limitations.

Application: Document debug=True and cross-link to the overview.
autoreload: Note that this can lose flags and fail if you touch sys.argv.

13 years agoFix load_gettext_translations on python 3
Ben Darnell [Thu, 14 Jun 2012 08:41:04 +0000 (01:41 -0700)] 
Fix load_gettext_translations on python 3

13 years agoBetter ($LANG-independent) fix for csv translation loading on py3.
Ben Darnell [Thu, 14 Jun 2012 08:03:17 +0000 (01:03 -0700)] 
Better ($LANG-independent) fix for csv translation loading on py3.

13 years agoIgnore ImportWarnings in tests.
Ben Darnell [Thu, 14 Jun 2012 07:28:15 +0000 (00:28 -0700)] 
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

13 years agoGive test_request_timeout another 10ms slack.
Ben Darnell [Thu, 14 Jun 2012 06:09:15 +0000 (23:09 -0700)] 
Give test_request_timeout another 10ms slack.

This has been failing a lot on my freebsd VM.

13 years agoBetter way to force a getaddrinfo error.
Ben Darnell [Thu, 14 Jun 2012 06:08:06 +0000 (23:08 -0700)] 
Better way to force a getaddrinfo error.

This fixes the tests for users behind misbehaving DNS servers.

Closes #534.

13 years agoRun the tests in optimized mode too to ensure that things still work
Ben Darnell [Wed, 13 Jun 2012 17:55:46 +0000 (10:55 -0700)] 
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).

13 years agoReplace all assert statements in test code.
Ben Darnell [Wed, 13 Jun 2012 17:42:14 +0000 (10:42 -0700)] 
Replace all assert statements in test code.

Use self.assertFoo where TestCase instances are available, otherwise
raise an exception manually.

13 years agoMerge pull request #532 from splav/master
bdarnell [Wed, 13 Jun 2012 04:57:01 +0000 (21:57 -0700)] 
Merge pull request #532 from splav/master

to_unicode fix in locale.load_translations