def METHOD_NAME(self):
    # Test recvfrom() timeout
    _timeout = 2
    self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    self.sock.settimeout(_timeout)
    # Prevent "Address already in use" socket exceptions
    test_support.bind_port(self.sock, self.localhost)
    _t1 = time.time()
    self.assertRaises(socket.error, self.sock.recvfrom, 8192)
    _t2 = time.time()
    _delta = abs(_t1 - _t2)
    self.assertTrue(_delta < _timeout + self.fuzz,
                 "timeout (%g) is %g seconds more than expected (%g)"
                 %(_delta, self.fuzz, _timeout))