d50d16232641f373c31cf4e0f8b6abdb74326f7d,tests/python/pants_test/init/test_logging.py,LoggingTest,test_file_logging,#LoggingTest#,37

Before Change


      file_logger.debug("this is some debug info")
      logging_setup_result.log_handler.flush()

      with open(logging_setup_result.log_filename, "r") as fp:
        loglines = fp.read().splitlines()
        self.assertEqual(2, len(loglines))
        self.assertIn("[WARN] this is a warning", loglines[0])
        self.assertIn("[INFO] this is some info", loglines[1])

After Change


      file_logger.debug("this is some debug info")
      logging_setup_result.log_handler.flush()

      loglines = Path(logging_setup_result.log_filename).read_text().splitlines()
      self.assertEqual(2, len(loglines))
      self.assertIn("[WARN] this is a warning", loglines[0])
      self.assertIn("[INFO] this is some info", loglines[1])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: d50d16232641f373c31cf4e0f8b6abdb74326f7d
Time: 2019-09-08
Author: ericarellano@me.com
File Name: tests/python/pants_test/init/test_logging.py
Class Name: LoggingTest
Method Name: test_file_logging


Project Name: theislab/scanpy
Commit Name: ec60a13a0028b14afd71f037fecb8d8fab029232
Time: 2019-01-07
Author: flying-sheep@web.de
File Name: setup.py
Class Name:
Method Name:


Project Name: tensorflow/datasets
Commit Name: 373aa6539bc8a4a74fe83be32d3b87a4aa809d15
Time: 2020-10-20
Author: epot@google.com
File Name: tensorflow_datasets/core/download/checksums.py
Class Name:
Method Name: load_url_infos