7205bc1806bbc085c01e40fa04fce68dcff0ae71,tests/python/pants_test/base/test_exception_sink.py,TestExceptionSink,test_log_exception,#TestExceptionSink#,60
Before Change
self.assertNotEqual(cur_process_error_log_path, shared_error_log_path)
// We only logged a single error, so the files should both contain only that single log entry.
err_rx = \
timestamp: ([^\n]+)
args: ([^\n]+)
pid: {pid}
XXX
.format(pid=re.escape(str(pid)))
with open(cur_process_error_log_path, "r") as cur_pid_file:
self.assertRegexpMatches(cur_pid_file.read(), err_rx)
with open(shared_error_log_path, "r") as shared_log_file:
self.assertRegexpMatches(shared_log_file.read(), err_rx)
After Change
self.assertNotEqual(cur_process_error_log_path, shared_error_log_path)
// We only logged a single error, so the files should both contain only that single log entry.
err_rx = \
timestamp: ([^\n]+)
process title: {fake_process_title}
sys.argv: ([^\n]+)
pid: {pid}
{msg}
.format(fake_process_title=re.escape(fake_process_title),
pid=pid,
msg=msg)
with open(cur_process_error_log_path, "r") as cur_pid_file:
self.assertRegexpMatches(cur_pid_file.read(), err_rx)
with open(shared_error_log_path, "r") as shared_log_file:
self.assertRegexpMatches(shared_log_file.read(), err_rx)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: pantsbuild/pants
Commit Name: 7205bc1806bbc085c01e40fa04fce68dcff0ae71
Time: 2018-10-10
Author: 1305167+cosmicexplorer@users.noreply.github.com
File Name: tests/python/pants_test/base/test_exception_sink.py
Class Name: TestExceptionSink
Method Name: test_log_exception
Project Name: nipunsadvilkar/pySBD
Commit Name: 026aefb394b2cffbf8b77cbb580adadf4513258d
Time: 2019-11-11
Author: daniel@allenai.org
File Name: pysbd/abbreviation_replacer.py
Class Name:
Method Name: replace_abbreviation_as_sentence_boundary
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 8f56f2711b5b1653f60d009d6f642cb653c20462
Time: 2015-09-11
Author: vukasin.stefanovic92@gmail.com
File Name: perfkitbenchmarker/benchmarks/cloudsuite_web_search.py
Class Name:
Method Name: _BuildIndex