Something went wrong. Try again.
/x/perimental project monorepo
Something went wrong. Try again.
447 B · 23 lines
Go
at master
123456789101112131415161718192021222324package python
import ( "context" "testing")
func TestRun(t *testing.T) { var code = `import sys
print(f"Python {sys.version} running in {sys.platform}/wazero.")`
res, err := Run(context.Background(), nil, code) if err != nil { t.Logf("stdout: %s", res.Stdout) t.Logf("stderr: %s", res.Stderr) t.Logf("platform error: %s", res.PlatformError) t.Fatal(err) }
t.Logf("stdout: %s", res.Stdout) t.Logf("stderr: %s", res.Stderr)}