Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 22, 2023. It is now read-only.
/pythonnetPublic archive
forked frompythonnet/pythonnet

Commitd145ab1

Browse files
authored
Python runtime must be initialized before trying to acquire GIL (pythonnet#1086)
1 parenta320d49 commitd145ab1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

‎src/embed_tests/TestGILState.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,17 @@ public void CanDisposeMultipleTimes()
1717
gilState.Dispose();
1818
}
1919
}
20+
21+
[OneTimeSetUp]
22+
publicvoidSetUp()
23+
{
24+
PythonEngine.Initialize();
25+
}
26+
27+
[OneTimeTearDown]
28+
publicvoidDispose()
29+
{
30+
PythonEngine.Shutdown();
31+
}
2032
}
2133
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp