On Sun, 29 Aug 2010 22:56:56 +0200 (CEST)
giampaolo.rodola <python-check...@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.


_______________________________________________
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/archive%40mail-archive.com

Reply via email to