A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2010-August/103340.html below:

[Python-Dev] r84355 - python/branches/py3k/Lib/test/test_ssl.py

[Python-Dev] r84355 - python/branches/py3k/Lib/test/test_ssl.py [Python-Dev] r84355 - python/branches/py3k/Lib/test/test_ssl.pyAntoine Pitrou solipsis at pitrou.net
Sun Aug 29 23:23:12 CEST 2010
On Sun, 29 Aug 2010 22:56:56 +0200 (CEST)
giampaolo.rodola <python-checkins at python.org> wrote:
> +        with self.assertRaises(IOError) as err:
> +            ssl.wrap_socket(socket.socket(), certfile=WRONGCERT)
> +            self.assertEqual(err.errno, errno.ENOENT)

The assertEqual will never get executed since the previous line raises.

> +        with self.assertRaises(IOError) as err:
> +            ssl.wrap_socket(socket.socket(), certfile=WRONGCERT, keyfile=WRONGCERT)
> +            self.assertEqual(err.errno, errno.ENOENT)

Same here.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4