Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove PYTHONMALLOC setting
  • Loading branch information
amos402 authored and Martin-Molinero committed Mar 27, 2019
commit fc53d947d0cace0f72e6bf6af8f65c891646d852
10 changes: 0 additions & 10 deletions src/embed_tests/TestFinalizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@ public class TestFinalizer
[SetUp]
public void SetUp()
{
try
{
_PYTHONMALLOC = Environment.GetEnvironmentVariable("PYTHONMALLOC");
}
catch (ArgumentNullException)
{
_PYTHONMALLOC = null;
}
Environment.SetEnvironmentVariable("PYTHONMALLOC", "malloc");
_oldThreshold = Finalizer.Instance.Threshold;
PythonEngine.Initialize();
Exceptions.Clear();
Expand All @@ -33,7 +24,6 @@ public void TearDown()
{
Finalizer.Instance.Threshold = _oldThreshold;
PythonEngine.Shutdown();
Environment.SetEnvironmentVariable("PYTHONMALLOC", _PYTHONMALLOC);
}

private static void FullGCCollect()
Expand Down