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: