44f4681a221523e1dc84fb8b3c221ef1bfc632e0,tests/python/pants_test/tasks/test_detect_duplicates.py,DuplicateDetectorTest,test_fail_fast_error_raised,#DuplicateDetectorTest#,95

Before Change


    self.assertFalse(task._is_conflicts(self.path_without_duplicates, binary_target=None))

  def test_fail_fast_error_raised(self):
    context = self.context(
      options={
          self.options_scope: {"fail_fast": True, "excludes": [], "max_dups": 10}
      }
    )
    task = self.create_task(context, workdir=None)
    task.execute()
    with self.assertRaises(TaskError):
      task._is_conflicts(self.path_with_duplicates, binary_target=None)

After Change


    task = self.execute_detect_duplicates(fail_fast=False)
    self.assertFalse(task._is_conflicts(self.path_without_duplicates, binary_target=None))

  def test_fail_fast_error_raised(self):
    task = self.execute_detect_duplicates(fail_fast=True)
    with self.assertRaises(TaskError):
      task._is_conflicts(self.path_with_duplicates, binary_target=None)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: pantsbuild/pants
Commit Name: 44f4681a221523e1dc84fb8b3c221ef1bfc632e0
Time: 2015-10-12
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/tasks/test_detect_duplicates.py
Class Name: DuplicateDetectorTest
Method Name: test_fail_fast_error_raised


Project Name: pantsbuild/pants
Commit Name: 44f4681a221523e1dc84fb8b3c221ef1bfc632e0
Time: 2015-10-12
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/tasks/test_detect_duplicates.py
Class Name: DuplicateDetectorTest
Method Name: test_fail_fast_error_raised


Project Name: pantsbuild/pants
Commit Name: 44f4681a221523e1dc84fb8b3c221ef1bfc632e0
Time: 2015-10-12
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/tasks/test_detect_duplicates.py
Class Name: DuplicateDetectorTest
Method Name: test_duplicate_found


Project Name: pantsbuild/pants
Commit Name: 44f4681a221523e1dc84fb8b3c221ef1bfc632e0
Time: 2015-10-12
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/tasks/test_detect_duplicates.py
Class Name: DuplicateDetectorTest
Method Name: test_duplicate_not_found