Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1dbf383

Browse files
dsefilmor
dse
authored andcommitted
Added all tests finalizer routine.
1 parent b0c68e6 commit 1dbf383

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
@@ -105,6 +105,7 @@
105105
<Compile Include="TestRuntime.cs" />
106106
<Compile Include="TestPyScope.cs" />
107107
<Compile Include="TestTypeManager.cs" />
108+
<Compile Include="TestsSuite.cs" />
108109
</ItemGroup>
109110
<ItemGroup>
110111
<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)