9d16240c327a5803cb017d83165dd460fbb8f472,src/python/pants/backend/jvm/tasks/junit_run.py,JUnitRun,_get_failed_targets,#JUnitRun#Any#,275

Before Change


        // ensure this target is in failed_targets, but we don"t have details about which testclass//testname
        // failed. Instead we just use the "test" up to the first "$".
        test_split = test.split("$")
        failed_targets[target].add(test_split[0])

    return dict(failed_targets)

  def _run_tests(self, tests_to_targets):

After Change


        filename = get_test_filename(test_class_name)
        if os.path.exists(filename):
          xml_filenames_to_targets[filename] = target
          break
        else:
          test_class_name = test_class_name.rsplit("$", 1)[0]

    failed_targets = defaultdict(set)
    for xml_filename, target in xml_filenames_to_targets.items():
      try:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 9d16240c327a5803cb017d83165dd460fbb8f472
Time: 2016-03-28
Author: cheister@gmail.com
File Name: src/python/pants/backend/jvm/tasks/junit_run.py
Class Name: JUnitRun
Method Name: _get_failed_targets


Project Name: pfnet/optuna
Commit Name: abbee966de8fbd69dbb00217fbfc683f9007948f
Time: 2020-04-20
Author: contact@c-bata.link
File Name: optuna/samplers/_search_space.py
Class Name: IntersectionSearchSpace
Method Name: calculate


Project Name: ray-project/ray
Commit Name: 06fac785b89239dde039c310db2ee171f44aa776
Time: 2021-01-27
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/tests/test_failure.py
Class Name:
Method Name: test_worker_replica_failure