3d7c03ab5a7fcd2459128d9cc849031b28b3f350,tests/python/pants_test/backend/jvm/tasks/test_binary_create_integration.py,BinaryCreateIntegrationTest,test_deploy_excludes,#BinaryCreateIntegrationTest#,59

Before Change



    // This jar should not run by itself, missing symbols
    java_run = subprocess.Popen(["java", "-jar", jar_filename], stderr=subprocess.PIPE)
    java_retcode = java_run.wait()
    java_stderr = java_run.stderr.read()
    self.assertEquals(java_retcode, 1)
    self.assertIn("java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableSortedSet", java_stderr)

After Change


                                    "com/google/common/collect/ImmutableSortedSet")

      // But adding back the deploy_excluded symbols should result in a clean run.
      classpath = [jar_filename,
                   os.path.join(pants_run.workdir,
                                "ivy/jars/com.google.guava/guava/bundles/guava-18.0.jar")]

      self.run_java(java_args=["-cp", os.pathsep.join(classpath),
                               "org.pantsbuild.testproject.deployexcludes.DeployExcludesMain"],
                    expected_output="DeployExcludes Hello World")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 3d7c03ab5a7fcd2459128d9cc849031b28b3f350
Time: 2015-10-12
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/backend/jvm/tasks/test_binary_create_integration.py
Class Name: BinaryCreateIntegrationTest
Method Name: test_deploy_excludes


Project Name: automl/auto-sklearn
Commit Name: 7098738c9f3c41120cffcce7a76fa7e8e86df4ec
Time: 2015-10-02
Author: feurerm@informatik.uni-freiburg.de
File Name: autosklearn/automl.py
Class Name: AutoML
Method Name: _fit


Project Name: ilastik/ilastik
Commit Name: 4f678e605583b8770d5fbd1ee194f2c74fbd3a24
Time: 2014-03-19
Author: bergs@janelia.hhmi.org
File Name: lazyflow/operators/opCompressedUserLabelArray.py
Class Name: OpCompressedUserLabelArray
Method Name: _purge_label


Project Name: pytorch/pytorch
Commit Name: 7ae7768617cba5863ecd14f1169fa75682897fbc
Time: 2021-02-24
Author: benjamin.lefaudeux@gmail.com
File Name: torch/distributed/optim/zero_redundancy_optimizer.py
Class Name: ZeroRedundancyOptimizer
Method Name: _broadcast_params