Skip to content

Commit

Permalink
Fix pip tests (#2234)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <[email protected]>
  • Loading branch information
sverdlov93 authored Oct 4, 2023
1 parent df7dd63 commit d1be462
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,13 @@ func assertDependenciesRequestedByAndChecksums(t *testing.T, module buildinfo.Mo
assert.EqualValues(t, [][]string{{moduleName}}, dependency.RequestedBy)
case "six:1.16.0":
assert.EqualValues(t, [][]string{{"nltk:3.4.5", moduleName}}, dependency.RequestedBy)
case "altgraph:0.17.3":
assert.EqualValues(t, [][]string{{"macholib:1.11", moduleName}}, dependency.RequestedBy)
default:
assert.Fail(t, "Unexpected dependency "+dependency.Id)
// Altgraph version can change
if assert.Contains(t, dependency.Id, "altgraph") {
assert.EqualValues(t, [][]string{{"macholib:1.11", moduleName}}, dependency.RequestedBy)
} else {
assert.Fail(t, "Unexpected dependency "+dependency.Id)
}
}
}
}
Expand Down

0 comments on commit d1be462

Please sign in to comment.