More what's new

This commit is contained in:
Antoine Pitrou 2010-11-05 22:18:28 +00:00
parent 7d15a72c54
commit afb078dd26
1 changed files with 6 additions and 0 deletions

View File

@ -488,6 +488,12 @@ New, Improved, and Deprecated Modules
5-tuple), and :data:`ssl.OPENSSL_VERSION_NUMBER` (an integer). (Added by 5-tuple), and :data:`ssl.OPENSSL_VERSION_NUMBER` (an integer). (Added by
Antoine Pitrou; :issue:`8321`.) Antoine Pitrou; :issue:`8321`.)
* :class:`http.client.HTTPSConnection`, :class:`urllib.request.HTTPSHandler`
and :func:`urllib.request.urlopen` now take optional arguments to allow for
server certificate checking against a set of Certificate Authorities,
as recommended in public uses of HTTPS.
(Added by Antoine Pitrou, :issue:`9003`.)
* Instances of :class:`unittest.TestCase` have two new methods * Instances of :class:`unittest.TestCase` have two new methods
:meth:`~unittest.TestCase.assertWarns` and :meth:`~unittest.TestCase.assertWarnsRegexp` :meth:`~unittest.TestCase.assertWarns` and :meth:`~unittest.TestCase.assertWarnsRegexp`
to check that a given warning type was triggered by the code under test:: to check that a given warning type was triggered by the code under test::