Lines Matching defs:errno
7 import errno
815 # XXX: check errno?
1055 if e.errno == errno.EPERM:
1402 if e.errno != errno.EADDRINUSE or i == 5:
1449 self.assertIn(err.errno, (errno.EBADF, errno.ENOTSOCK))
1481 if e.errno != errno.EADDRINUSE or i == 5:
1518 if err.errno == socket.EAI_SERVICE:
1619 # Our signal handlers clobber the C errno by calling a math function
1955 self.assertIn(cm.exception.errno, (errno.EBADF, WSAENOTSOCK))
1962 self.assertIn(cm.exception.errno, (errno.EBADF, WSAENOTSOCK))
1974 self.assertEqual(cm.exception.errno, errno.ENOTSOCK)
2223 if e.errno == errno.ENODEV:
2285 if e.errno == errno.ENODEV:
3002 self.assertIsNone(cm.exception.errno)
3039 if exc.errno != errno.ENOMEM:
3069 self.assertIn(cm.exception.errno,
3070 (errno.EAGAIN, errno.EWOULDBLOCK, errno.ENOMEM))
3628 self.assertIsInstance(e.errno, int)
4006 self.assertIsInstance(e.errno, int)
4428 if e.errno != errno.ENOTCONN:
4442 if e.errno != errno.ENOTCONN:
4530 # errno of EINTR when interrupted by a signal.
4589 # OSError with an errno of EINTR when interrupted by a
5180 self.assertEqual(cm.exception.errno, errno.ECONNREFUSED)
5184 # a proper errno attribute.
5201 # of ECONNREFUSED. So, if that errno exists, add it to our list of
5204 self.assertIn(cm.exception.errno, expected_errnos)
5233 if socket_helper.IPV6_ENABLED or exc.errno != errno.EAFNOSUPPORT: