Skip to content

Commit cde1537

Browse files
author
dse
committed
Added all tests finalizer routine.
1 parent f48f2e2 commit cde1537

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

src/embed_tests/Python.EmbeddingTest.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@
102102
<Compile Include="TestPyWith.cs" />
103103
<Compile Include="TestRuntime.cs" />
104104
<Compile Include="TestPyScope.cs" />
105+
<Compile Include="TestsSuite.cs" />
105106
</ItemGroup>
106107
<ItemGroup>
107108
<ProjectReference Include="..\runtime\Python.Runtime.csproj">

src/embed_tests/TestsSuite.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using NUnit.Framework;
2+
using Python.Runtime;
3+
4+
namespace Python.EmbeddingTest
5+
{
6+
[SetUpFixture]
7+
public class TestsSuite
8+
{
9+
[OneTimeTearDown]
10+
public void FinalCleanup()
11+
{
12+
if (PythonEngine.IsInitialized)
13+
{
14+
PythonEngine.Shutdown();
15+
}
16+
}
17+
}
18+
}

0 commit comments

Comments
 (0)