Sorry, I didn't get how the context-manager actually worked. Fixed in r84356. 2010/8/29 Michael Foord <fuzzyman@voidspace.org.uk>:
On 30/08/2010 00:23, Antoine Pitrou wrote:
On Sun, 29 Aug 2010 22:56:56 +0200 (CEST) giampaolo.rodola<python-checkins@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.
If it is dedented once then it will work (in Python 2.7 / 3.2).
Michael
+ with self.assertRaises(IOError) as err: + ssl.wrap_socket(socket.socket(), certfile=WRONGCERT, keyfile=WRONGCERT) + self.assertEqual(err.errno, errno.ENOENT)
Same here.
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.u...
-- http://www.ironpythoninaction.com/
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/g.rodola%40gmail.com