This commit is contained in:
Denis Bilenko 2025-03-04 15:47:25 +01:00
parent f31928af40
commit 9f9f89078e
2 changed files with 0 additions and 4 deletions

View File

@ -141,8 +141,6 @@ func PatchWheel(ctx context.Context, path, outputDir string) (string, error) {
return outpath, nil
}
// Target wheel doesn't exist, proceed with patching
// Create a temporary file in the same directory with a unique name
tmpFilename := outpath + fmt.Sprintf(".tmp%d", os.Getpid())
needRemoval := true

View File

@ -25,7 +25,6 @@ func getPythonScriptsDir() string {
}
func verifyVersion(t *testing.T, tempDir, wheelPath string) {
// Extract the expected version from the wheel filename
wheelInfo, err := ParseWheelFilename(wheelPath)
require.NoError(t, err)
expectedVersion := wheelInfo.Version
@ -144,7 +143,6 @@ func TestPatchWheel(t *testing.T) {
require.NoError(t, err)
require.Equal(t, patchedWheel, patchedWheel2, "PatchWheel is not idempotent")
// Check that the file wasn't recreated
patchedInfo2, err := os.Stat(patchedWheel2)
require.NoError(t, err)
require.Equal(t, patchedTime, patchedInfo2.ModTime(), "File was recreated when it shouldn't have been")