Skip to content

Commit f50d3de

Browse files
committed
Add comments
1 parent e29bef7 commit f50d3de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pip_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ func testPipCmd(t *testing.T, projectPath, buildNumber, module string, expectedD
141141
func assertDependenciesRequestedByAndChecksums(t *testing.T, module buildinfo.Module, moduleName string) {
142142
for _, dependency := range module.Dependencies {
143143
assertDependencyChecksums(t, dependency.Checksum)
144+
// Note that the versions of dependencies may vary,
145+
// as they are requested by the main module, which could update their sub-dependencies.
144146
switch dependency.Id {
145147
case "pyyaml:5.1.2", "nltk:3.4.5", "macholib:1.11":
146148
assert.EqualValues(t, [][]string{{moduleName}}, dependency.RequestedBy)

0 commit comments

Comments
 (0)