2d515b55b25a62b1f5961955e977e2fce4ae511e,tests/python/pants_test/android/tasks/test_dx_compile.py,DxCompileTest,test_duplicate_library_version_deps,#DxCompileTest#,224

Before Change


        context = self.context(target_roots=binary)
        first_unpacked = self.base_unpacked_files("org.pantsbuild.android", "example", "1.0")
        duplicate_unpacked = self.base_unpacked_files("org.pantsbuild.android", "example", "1.0")
        task_context = self._mock_unpacked_libraries(context, library, first_unpacked)
        both_context = self._mock_unpacked_libraries(task_context, library, duplicate_unpacked)
        dx_task = self.create_task(both_context)

        gathered_classes = dx_task._gather_classes(binary)
        // Should be just one copy of each class gathered.
        self.assertEqual(len(gathered_classes), 3)

  def test_dependency_version_conflict(self):

After Change


        first_unpacked = self.base_unpacked_files("org.pantsbuild.android", "example", "1.0")
        duplicate_unpacked = self.base_unpacked_files("org.pantsbuild.android", "example", "1.0")
        self._mock_products(context, library, [], first_unpacked)
        self._mock_products(context, library, [], duplicate_unpacked)

        gathered_classes = self._gather(context, binary)
        // Should be just one copy of each unpackaged class gathered.
        self.assertEqual(len([c for c in gathered_classes if c.endswith(".class")]), 3)

  def test_dependency_version_conflict(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: pantsbuild/pants
Commit Name: 2d515b55b25a62b1f5961955e977e2fce4ae511e
Time: 2015-10-06
Author: stuhood@gmail.com
File Name: tests/python/pants_test/android/tasks/test_dx_compile.py
Class Name: DxCompileTest
Method Name: test_duplicate_library_version_deps


Project Name: pantsbuild/pants
Commit Name: 2d515b55b25a62b1f5961955e977e2fce4ae511e
Time: 2015-10-06
Author: stuhood@gmail.com
File Name: tests/python/pants_test/android/tasks/test_dx_compile.py
Class Name: DxCompileTest
Method Name: test_dependency_version_conflict


Project Name: pantsbuild/pants
Commit Name: 2d515b55b25a62b1f5961955e977e2fce4ae511e
Time: 2015-10-06
Author: stuhood@gmail.com
File Name: tests/python/pants_test/android/tasks/test_dx_compile.py
Class Name: DxCompileTest
Method Name: test_duplicate_library_version_deps


Project Name: pantsbuild/pants
Commit Name: 2d515b55b25a62b1f5961955e977e2fce4ae511e
Time: 2015-10-06
Author: stuhood@gmail.com
File Name: tests/python/pants_test/android/tasks/test_dx_compile.py
Class Name: DxCompileTest
Method Name: test_gather_unpacked_libs