mirror of https://github.com/databricks/cli.git
clean up
This commit is contained in:
parent
f31928af40
commit
9f9f89078e
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue