2fc57cbc936e49e2550841adf8add816f6057b44,tests/python/pants_test/backend/native/subsystems/test_native_toolchain.py,TestNativeToolchain,_hello_world_source_environment,#TestNativeToolchain#Any#Any#Any#,104

Before Change


      with safe_open(source_file_path, mode="wb") as fp:
        fp.write(contents)

      execution_request = scheduler.execution_request_literal(scheduler_request_specs)

      with pushd(tmpdir):
        yield tuple(self.execute_literal(scheduler, execution_request))

  def _invoke_compiler(self, compiler, args):
    cmd = [compiler.exe_filename] + args
    return self._invoke_capturing_output(

After Change


      toolchain = self.execute_expecting_one_result(scheduler, toolchain_type, self.toolchain).value

      with pushd(tmpdir):
        yield toolchain

  def _invoke_compiler(self, compiler, args):
    cmd = [compiler.exe_filename] + compiler.extra_args + args
    return self._invoke_capturing_output(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: 2fc57cbc936e49e2550841adf8add816f6057b44
Time: 2018-07-24
Author: 1305167+cosmicexplorer@users.noreply.github.com
File Name: tests/python/pants_test/backend/native/subsystems/test_native_toolchain.py
Class Name: TestNativeToolchain
Method Name: _hello_world_source_environment


Project Name: lingpy/lingpy
Commit Name: d6691676e03553ccf7a6cfc175d49ebb2006e84f
Time: 2018-06-20
Author: tresoldi@shh.mpg.de
File Name: lingpy/sequence/ngrams.py
Class Name:
Method Name: skip_ngrams


Project Name: coala/coala-bears
Commit Name: b68ab2b4e4cbea341e9b2d16cc58cd24a5859aa5
Time: 2016-07-27
Author: toabhayraizada@gmail.com
File Name: bears/general/AnnotationBear.py
Class Name: AnnotationBear
Method Name: run