Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Python runtime must be initialized before trying to acquire GIL
  • Loading branch information
lostmsu committed Mar 10, 2020
commit e8a1e99514f84e2b28b6da80740375694717e76c
12 changes: 12 additions & 0 deletions src/embed_tests/TestGILState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,17 @@ public void CanDisposeMultipleTimes()
gilState.Dispose();
}
}

[OneTimeSetUp]
public void SetUp()
{
PythonEngine.Initialize();
}

[OneTimeTearDown]
public void Dispose()
{
PythonEngine.Shutdown();
}
}
}