[Python-Dev] r84355 - python/branches/py3k/Lib/test/test_ssl.py (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Sun Aug 29 23:23:12 CEST 2010
- Previous message: [Python-Dev] versioned .so files for Python 3.2
- Next message: [Python-Dev] r84355 - python/branches/py3k/Lib/test/test_ssl.py
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
+ with self.assertRaises(IOError) as err: + ssl.wrapsocket(socket.socket(), certfile=WRONGCERT, keyfile=WRONGCERT) + self.assertEqual(err.errno, errno.ENOENT)
Same here.
- Previous message: [Python-Dev] versioned .so files for Python 3.2
- Next message: [Python-Dev] r84355 - python/branches/py3k/Lib/test/test_ssl.py
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]