8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1897d1b commit 3909639Copy full SHA for 3909639
src/embed_tests/GlobalTestsSetup.cs
@@ -9,6 +9,22 @@ namespace Python.EmbeddingTest
9
[SetUpFixture]
10
public partial class GlobalTestsSetup
11
{
12
+ [OneTimeSetUp]
13
+ public void GlobalSetup()
14
+ {
15
+ Finalizer.Instance.ErrorHandler += FinalizerErrorHandler;
16
+ }
17
+
18
+ private void FinalizerErrorHandler(object sender, Finalizer.ErrorArgs e)
19
20
+ if (e.Error is RuntimeShutdownException)
21
22
+ // allow objects to leak after the python runtime run
23
+ // they were created in is gone
24
+ e.Handled = true;
25
26
27
28
[OneTimeTearDown]
29
public void FinalCleanup()
30
0 commit comments