| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b0c68e6 commit 1dbf383
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -105,6 +105,7 @@ | |||
| 105 | 105 | <Compile Include="TestRuntime.cs" /> | |
| 106 | 106 | <Compile Include="TestPyScope.cs" /> | |
| 107 | 107 | <Compile Include="TestTypeManager.cs" /> | |
| 108 | + <Compile Include="TestsSuite.cs" /> | ||
| 108 | 109 | </ItemGroup> | |
| 109 | 110 | <ItemGroup> | |
| 110 | 111 | <ProjectReference Include="..\runtime\Python.Runtime.csproj"> | |
| Original file line number | Diff line number | Diff 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 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments