Skip to content

Commit

Permalink
ioutil deprecations fix (#52)
Browse files Browse the repository at this point in the history
* fix missing os package import

* fix: proper replacement for ioutil TempDir
  • Loading branch information
anoop142 committed Nov 20, 2023
1 parent 510e0b0 commit ad87063
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions govarnam/govarnam_ml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package govarnam
import (
"context"
"log"
"os"
"path"
"strings"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion govarnam/govarnam_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func TestMain(m *testing.M) {
log.Fatal(err)
}

testTempDir, err = os.TempDir("", "govarnam_test")
testTempDir, err = os.MkdirTemp("", "govarnam_test")
checkError(err)

for _, schemeDetail := range schemeDetails {
Expand Down

0 comments on commit ad87063

Please sign in to comment.