We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52c6d73 commit e0c9c1eCopy full SHA for e0c9c1e
1 file changed
init_test.go
@@ -2,13 +2,17 @@ package python_test
2
3
import (
4
"os"
5
+ "runtime"
6
"testing"
7
8
python3 "go.nhat.io/python/v3"
9
)
10
11
// TestMain is the entry point for the test suite.
12
func TestMain(m *testing.M) {
13
+ runtime.LockOSThread()
14
+ defer runtime.UnlockOSThread()
15
+
16
defer python3.Finalize()
17
18
os.Exit(m.Run()) // nolint: gocritic
0 commit comments