Skip to content

Commit ab016c4

Browse files
committed
Enable test_memory
1 parent 91786b4 commit ab016c4

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

Src/IronPython/Runtime/Types/PythonType.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2504,6 +2504,7 @@ private void AddSubType(PythonType subtype) {
25042504
}
25052505

25062506
lock (_subtypesLock) {
2507+
_subtypes.RemoveAll(x => !x.TryGetTarget(out _)); // remove dead entries
25072508
_subtypes.Add(new WeakReference<PythonType>(subtype));
25082509
}
25092510
}

Src/IronPythonTest/Cases/IronPythonCasesManifest.ini

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,6 @@ Reason=New test needs to be written for new csharp version
5454
Ignore=true
5555
Reason=Assertion error
5656

57-
[IronPython.test_memory]
58-
#RunCondition=NOT $(IS_POSIX)
59-
#Reason=Memory allocation on Mono may not match MS.NET
60-
Ignore=true
61-
Reason=Fails intermittently - https://github.com/IronLanguages/ironpython3/issues/508
62-
6357
[IronPython.test_number]
6458
Timeout=300000 # 5 minute timeout - slow on macOS
6559

Tests/test_memory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ def setUp(self):
8282
from Microsoft.Scripting.Generation import Snippets
8383

8484
self.skipMemoryCheck = Snippets.Shared.SaveSnippets or clr.GetCurrentRuntime().Configuration.DebugMode
85-
self.expectedMem = 24000
8685

8786
# account for adaptive compilation
87+
self.expectedMem = 24000
8888
if is_cli64:
8989
self.expectedMem = int(self.expectedMem*1.25)
9090

0 commit comments

Comments
 (0)