File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
test-integration/test_integration Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -93,9 +93,13 @@ def assert_versions_match(semver_version: str, pep440_version: str):
93
93
if semver_pre .startswith ("dev" ):
94
94
assert pep440_groups ["dev_l" ] == "dev" , "Dev build status does not match"
95
95
96
- assert pep440_groups ["local" ].startswith (semver_groups ["buildmetadata" ]), (
97
- f"Local/build metadata component does not match: { semver_groups ['buildmetadata' ]} != { pep440_groups ['local' ]} "
98
- )
96
+ if (
97
+ pep440_groups ["local" ] is not None
98
+ and semver_groups ["buildmetadata" ] is not None
99
+ ):
100
+ assert pep440_groups ["local" ].startswith (semver_groups ["buildmetadata" ]), (
101
+ f"Local/build metadata component does not match: { semver_groups ['buildmetadata' ]} != { pep440_groups ['local' ]} "
102
+ )
99
103
100
104
101
105
def random_string (length ):
You can’t perform that action at this time.
0 commit comments