Skip to content

Commit 2a00b69

Browse files
committed
🧪 Enable memory leak tests on Python 3.14 (#7330)
Remove the skip markers from the engine memory leak tests. These were added when `pympler.muppy.get_objects` caused the suite to hang on Python 3.12.
1 parent 5f9d3fd commit 2a00b69

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

tests/engine/test_memory_leaks.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
###########################################################################
99
"""Utilities for testing memory leakage."""
1010

11-
import sys
12-
1311
import pytest
1412

1513
from aiida import orm
@@ -44,15 +42,13 @@ def check_memory_leaks():
4442
assert not process_instances, f'Memory leak: process instances remain in memory: {process_instances}'
4543

4644

47-
@pytest.mark.skipif(sys.version_info >= (3, 12), reason='Garbage collecting hangs on Python 3.12')
4845
@pytest.mark.usefixtures('aiida_profile', 'check_memory_leaks')
4946
def test_leak_run_process():
5047
"""Test whether running a dummy process leaks memory."""
5148
inputs = {'a': orm.Int(2), 'b': orm.Str('test')}
5249
run_finished_ok(test_processes.DummyProcess, **inputs)
5350

5451

55-
@pytest.mark.skipif(sys.version_info >= (3, 12), reason='Garbage collecting hangs on Python 3.12')
5652
@pytest.mark.usefixtures('aiida_profile', 'check_memory_leaks')
5753
def test_leak_local_calcjob(aiida_code_installed):
5854
"""Test whether running a local CalcJob leaks memory."""
@@ -64,7 +60,6 @@ def test_leak_local_calcjob(aiida_code_installed):
6460
run_finished_ok(ArithmeticAddCalculation, **inputs)
6561

6662

67-
@pytest.mark.skipif(sys.version_info >= (3, 12), reason='Garbage collecting hangs on Python 3.12')
6863
@pytest.mark.usefixtures('aiida_profile', 'check_memory_leaks')
6964
def test_leak_ssh_calcjob(aiida_computer_ssh):
7065
"""Test whether running a CalcJob over SSH leaks memory.

0 commit comments

Comments
 (0)