class_docstr: Test class for output tests.
docstr: Test that warnings get correctly sent to the logger.
docstr_tok: ["Test","that","warnings","get","correctly","sent","to","the","logger","."]
code: def test_send_warnings_to_log(self):
      """Test that warnings get correctly sent to the logger."""
      # Run experiment
  
      suffix = ".jsonlines"
      train_path = train_dir / f"test_send_warnings{suffix}"
      config_path = fill_in_config_paths_for_single_file(
          config_dir / "test_send_warnings_to_log.template.cfg",
          train_path,
          None,
      )
      run_configuration(config_path, quiet=True, local=True)
  
      # Check experiment log output
      # The experiment log file should contain warnings related
      # to the use of sklearn
      with open(
          output_dir
          / "test_send_warnings_to_log_train_test_send_warnings."
          "jsonlines_LinearSVC.log"
      ) as f:
          log_content = f.read()
          convergence_sklearn_warning_re = re.compile(
              r"WARNING - [^\n]+sklearn.svm._base\.py:\d+: ConvergenceWarning:"
              r"Liblinear failed to converge, increase the number of iterations"
              r"\."
          )
          assert (
              convergence_sklearn_warning_re.search(log_content)
              is not None
          )
  
imports: import csv
  import json
  import re
  import unittest
  import warnings
  from ast import literal_eval
  from collections import defaultdict
  from itertools import chain, product
  from pathlib import Path
  from unittest.mock import Mock, patch
  import numpy
  import pandas
  from numpy.testing import assert_almost_equal, assert_array_almost_equal, assert_array_equal
  from sklearn.model_selection import ShuffleSplit, learning_curve
  from sklearn.naive_bayes import MultinomialNB
  from skll.data import FeatureSet, NDJReader, NDJWriter, Reader
  from skll.experiments import run_configuration
  from skll.experiments.output import _compute_ylimits_for_featureset
  from skll.learner import Learner
  from skll.utils.constants import VALID_TASKS
  from skll.utils.logging import close_and_remove_logger_handlers, get_skll_logger
  from skll.utils.testing import backward_compatibility_dir, config_dir, create_jsonlines_feature_files, fill_in_config_options, fill_in_config_paths, fill_in_config_paths_for_single_file, make_classification_data, make_digits_data, make_regression_data, other_dir, output_dir, remove_jsonlines_feature_files, test_dir, tests_dir, train_dir, unlink
label_desc: Use image node_id 24 for calling the TestOutput obj's underlying member method code with example usage: obj.test_send_warnings_to_log() without return types