cf6f30685b1540ae99c8ab7dd23ee4e75e5d2275,tests/python/pants_test/base_test.py,BaseTest,config,#BaseTest#Any#,119

Before Change


        fp.write(overrides)
        fp.close()
        with environment_as(PANTS_CONFIG_OVERRIDE=fp.name):
          return Config.load()
    else:
      return Config.load()

  def set_new_options_for_scope(self, scope, **kwargs):

After Change



  def config(self, overrides=""):
    Returns a config valid for the test build root.
    ini_file = os.path.join(get_buildroot(), "pants.ini")
    if overrides:
      with temporary_file(cleanup=False) as fp:
        fp.write(overrides)
        fp.close()
        return Config.load([ini_file, fp.name])
    else:
      return Config.load([ini_file])

  def set_new_options_for_scope(self, scope, **kwargs):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: pantsbuild/pants
Commit Name: cf6f30685b1540ae99c8ab7dd23ee4e75e5d2275
Time: 2014-12-08
Author: benjyw@gmail.com
File Name: tests/python/pants_test/base_test.py
Class Name: BaseTest
Method Name: config


Project Name: pantsbuild/pants
Commit Name: 66f4d54920b8423971104cfcd282e0c5b3ddf56f
Time: 2015-10-16
Author: john.sirois@gmail.com
File Name: contrib/go/src/python/pants/contrib/go/tasks/go_buildgen.py
Class Name: GoBuildgen
Method Name: generate_targets


Project Name: pantsbuild/pants
Commit Name: 4d475b37f86f5391504468abddad5eaa619e595d
Time: 2018-09-24
Author: wisechengyi@gmail.com
File Name: src/python/pants/backend/jvm/subsystems/zinc.py
Class Name: Zinc
Method Name: dist