mirror of
https://github.com/hanzoai/cpy3.git
synced 2026-10-30 18:42:30 +00:00
17 lines
220 B
Go
17 lines
220 B
Go
package python3
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestRecursion(t *testing.T) {
|
|
Py_Initialize()
|
|
|
|
assert.Zero(t, Py_EnterRecursiveCall("in test function"))
|
|
|
|
Py_LeaveRecursiveCall()
|
|
|
|
}
|