From 923a33051c4ab4e4a88201e182687916b4a1d97a Mon Sep 17 00:00:00 2001 From: Michael Sverdlov Date: Wed, 4 Oct 2023 12:23:51 +0300 Subject: [PATCH] fix latest build Signed-off-by: Michael Sverdlov --- pip_test.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pip_test.go b/pip_test.go index baba851d5..70772e6ec 100644 --- a/pip_test.go +++ b/pip_test.go @@ -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) + } } } }