[Python-Dev] r84355 - python/branches/py3k/Lib/test/test_ssl.py (original) (raw)
Michael Foord fuzzyman at voidspace.org.uk
Sun Aug 29 23:25:49 CEST 2010
- Previous message: [Python-Dev] r84355 - python/branches/py3k/Lib/test/test_ssl.py
- Next message: [Python-Dev] r84355 - python/branches/py3k/Lib/test/test_ssl.py
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 30/08/2010 00:23, Antoine Pitrou wrote:
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.wrapsocket(socket.socket(), certfile=WRONGCERT) + self.assertEqual(err.errno, errno.ENOENT) The assertEqual will never get executed since the previous line raises.
If it is dedented once then it will work (in Python 2.7 / 3.2).
Michael
+ with self.assertRaises(IOError) as err: + ssl.wrapsocket(socket.socket(), certfile=WRONGCERT, keyfile=WRONGCERT) + self.assertEqual(err.errno, errno.ENOENT) Same here.
Python-Dev mailing list Python-Dev at python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk
-- http://www.ironpythoninaction.com/
- Previous message: [Python-Dev] r84355 - python/branches/py3k/Lib/test/test_ssl.py
- Next message: [Python-Dev] r84355 - python/branches/py3k/Lib/test/test_ssl.py
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]