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 21da86d commit 5254c65Copy full SHA for 5254c65
src/embed_tests/TestFinalizer.cs
@@ -14,15 +14,6 @@ public class TestFinalizer
14
[SetUp]
15
public void SetUp()
16
{
17
- try
18
- {
19
- _PYTHONMALLOC = Environment.GetEnvironmentVariable("PYTHONMALLOC");
20
- }
21
- catch (ArgumentNullException)
22
23
- _PYTHONMALLOC = null;
24
25
- Environment.SetEnvironmentVariable("PYTHONMALLOC", "malloc");
26
_oldThreshold = Finalizer.Instance.Threshold;
27
PythonEngine.Initialize();
28
Exceptions.Clear();
@@ -33,7 +24,6 @@ public void TearDown()
33
34
Finalizer.Instance.Threshold = _oldThreshold;
35
PythonEngine.Shutdown();
36
- Environment.SetEnvironmentVariable("PYTHONMALLOC", _PYTHONMALLOC);
37
}
38
39
29
private static void FullGCCollect()
0 commit comments