@@ -8,23 +8,24 @@ load(":prebuilt_protoc_toolchain.bzl", "release_version_to_artifact_name")
88load (":versions.bzl" , "PROTOC_VERSIONS" )
99
1010def _release_version_to_artifact_name_test_impl (ctx ):
11- env = unittest .begin (ctx )
12- count = 0
11+ env = unittest .begin (ctx )
12+ count = 0
1313
14- for release_version in PROTOC_VERSIONS :
15- artifact_name = release_version_to_artifact_name (release_version , "linux-x86_64" )
16- artifact_dict = PROTOC_VERSIONS [release_version ]
17- # there should be a linux-x86_64 artifact in every release
18- asserts .true (env , artifact_name in artifact_dict , "'{}' not found for release version '{}'" .format (artifact_name , release_version ))
19- count += 1
14+ for release_version in PROTOC_VERSIONS :
15+ artifact_name = release_version_to_artifact_name (release_version , "linux-x86_64" )
16+ artifact_dict = PROTOC_VERSIONS [release_version ]
2017
21- asserts .true (env , count > 0 , "no versions tested" )
22- return unittest .end (env )
18+ # there should be a linux-x86_64 artifact in every release
19+ asserts .true (env , artifact_name in artifact_dict , "'{}' not found for release version '{}'" .format (artifact_name , release_version ))
20+ count += 1
21+
22+ asserts .true (env , count > 0 , "no versions tested" )
23+ return unittest .end (env )
2324
2425release_version_to_artifact_name_test = unittest .make (_release_version_to_artifact_name_test_impl )
2526
2627def release_version_to_artifact_name_test_suite ():
27- unittest .suite (
28- "release_version_to_artifact_name_tests" ,
29- release_version_to_artifact_name_test ,
30- )
28+ unittest .suite (
29+ "release_version_to_artifact_name_tests" ,
30+ release_version_to_artifact_name_test ,
31+ )
0 commit comments