Home | History | Annotate | Download | only in test

Lines Matching refs:exception

155         except Exception, strerror:
271 "Error raising socket exception.")
273 "Error raising socket exception.")
275 "Error raising socket exception.")
288 self.assertIn('not complex', str(cm.exception))
291 self.assertIn('not NoneType', str(cm.exception))
297 self.assertIn('not complex', str(cm.exception))
300 self.assertIn('not NoneType', str(cm.exception))
303 self.assertIn('an integer is required', str(cm.exception))
306 self.assertIn('an integer is required', str(cm.exception))
310 self.assertIn('(1 given)', str(cm.exception))
313 self.assertIn('(4 given)', str(cm.exception))
1270 self.assertEqual(cm.exception.errno, errno.ECONNREFUSED)
1288 # the last exception it encountered.
1297 self.assertIn(cm.exception.errno, expected_errnos)
1439 "Error generating a timeout exception (TCP)")
1451 self.fail("caught unexpected exception (TCP)")
1462 class Alarm(Exception):
1476 self.fail("caught other exception instead of Alarm:"
1496 "Error generating a timeout exception (UDP)")
1508 self.fail("caught unexpected exception (UDP)")
1515 self.assertTrue(issubclass(socket.error, Exception))
1676 # we could get an exception