Skip to content

Commit 81122e0

Browse files
committed
lock os thread in test
1 parent b5e2e08 commit 81122e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

math/math_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
package math
22

33
import (
4+
"runtime"
45
"testing"
56

67
gp "github.com/cpunion/go-python"
78
)
89

910
func TestSqrt(t *testing.T) {
11+
runtime.LockOSThread()
1012
// Initialize Python
1113
gp.Initialize()
1214
defer gp.Finalize()

0 commit comments

Comments
 (0)