Skip to content

Commit bfb6e59

Browse files
author
dse
committed
Debug info added!
1 parent 32af1f4 commit bfb6e59

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/embed_tests/FinalShutdown.cs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using System;
2+
using NUnit.Framework;
3+
using Python.Runtime;
4+
5+
namespace Python.EmbeddingTest
6+
{
7+
[SetUpFixture]
8+
public class FinalShutdown
9+
{
10+
[OneTimeTearDown]
11+
public void Finalize()
12+
{
13+
TestContext.Progress.WriteLine("This is global shutdown!");
14+
Console.Error.WriteLine("Trying finalyze test.");
15+
if (PythonEngine.IsInitialized)
16+
{
17+
Console.Error.WriteLine("Direct shutdown!");
18+
PythonEngine.Shutdown();
19+
}
20+
}
21+
}
22+
}

0 commit comments

Comments
 (0)