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

2010-08-29 Thread Giampaolo Rodolà
Sorry, I didn't get how the context-manager actually worked. Fixed in r84356. 2010/8/29 Michael Foord : >  On 30/08/2010 00:23, Antoine Pitrou wrote: >> >> On Sun, 29 Aug 2010 22:56:56 +0200 (CEST) >> giampaolo.rodola  wrote: >>> >>> +        with self.assertRaises(IOError) as err: >>> +          

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

2010-08-29 Thread Michael Foord
On 30/08/2010 00:23, Antoine Pitrou wrote: On Sun, 29 Aug 2010 22:56:56 +0200 (CEST) giampaolo.rodola wrote: +with self.assertRaises(IOError) as err: +ssl.wrap_socket(socket.socket(), certfile=WRONGCERT) +self.assertEqual(err.errno, errno.ENOENT) The assertEqua

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

2010-08-29 Thread Antoine Pitrou
On Sun, 29 Aug 2010 22:56:56 +0200 (CEST) giampaolo.rodola 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 previ