ad9f8480c8e08b95d6c217ec4a126bd93b7f376a,tests/python/pants_test/backend/jvm/targets/test_jvm_app.py,BundleTest,test_globs_relative_to_build_root,#BundleTest#,350

Before Change


          bundle(relative_to="config", fileset=["a/b"])
        ]
      )"""))
    graph = self.context().scan(self.build_root)
    globs = graph.get_target_from_spec("y:app").globs_relative_to_buildroot()
    self.assertEquals(["a/b", "y/z/*"], sorted(globs["globs"]))

After Change



    parse_context = self.create_parse_context("y")
    globs = Globs(parse_context)
    app = self.make_target("y:app",
                           JvmApp,
                           dependencies=[unused],
                           bundles=[
                             Bundle(parse_context, relative_to="config", fileset=globs("z/*")),
                             Bundle(parse_context, relative_to="config", fileset=["a/b"])
                           ])

    self.assertEquals(["a/b", "y/z/*"], sorted(app.globs_relative_to_buildroot()["globs"]))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: ad9f8480c8e08b95d6c217ec4a126bd93b7f376a
Time: 2015-08-31
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/backend/jvm/targets/test_jvm_app.py
Class Name: BundleTest
Method Name: test_globs_relative_to_build_root


Project Name: GPflow/GPflow
Commit Name: 8a4fde49f1bd71bd6d57a31d29c76ba0636997bc
Time: 2016-01-18
Author: james.hensman@gmail.com
File Name: testing/test_conditionals.py
Class Name: DiagsTest
Method Name: setUp


Project Name: GPflow/GPflow
Commit Name: 5c3c9461dca89468e265c4b2822f514f25fcaafc
Time: 2016-01-18
Author: james.hensman@gmail.com
File Name: GPflow/vgp.py
Class Name: VGP
Method Name: build_predict