783feee3639953f11654cdd9284d6b8b0d6b5a26,tests/python/pants_test/binaries/test_binary_util.py,BinaryUtilTest,test_support_url_multi,#BinaryUtilTest#,62

Before Change


    with binary_util._select_binary_stream(name="protoc", binary_path=binary_path) as stream:
      stream()
      count += 1
    self.assertEqual(count, 1)

  def test_support_url_fallback(self):
    Tests fallback behavior with multiple support baseurls.

After Change


      binary_path = binary_util._select_binary_base_path(supportdir="bin/protobuf",
                                                         version="2.4.1",
                                                         name="protoc")
      contents = b"proof"
      with safe_open(os.path.join(valid_local_files, binary_path), "wb") as fp:
        fp.write(contents)

      with binary_util._select_binary_stream(name="protoc", binary_path=binary_path) as stream:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 783feee3639953f11654cdd9284d6b8b0d6b5a26
Time: 2016-07-23
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/binaries/test_binary_util.py
Class Name: BinaryUtilTest
Method Name: test_support_url_multi


Project Name: nilearn/nilearn
Commit Name: e3d577b5595af3e1c9a05d3be84dbdf1a7c4aa20
Time: 2020-07-29
Author: jerome@dockes.org
File Name: nilearn/datasets/tests/test_atlas.py
Class Name:
Method Name: test_fetch_atlas_aal


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 172ee1d15de08df39fd41ab685cca82fcc2c3145
Time: 2018-09-28
Author: d.sanche14@gmail.com
File Name: kms/api-client/asymmetric_test.py
Class Name: TestKMSSamples
Method Name: test_rsa_sign_verify