88###########################################################################
99"""Utilities for testing memory leakage."""
1010
11- import sys
12-
1311import pytest
1412
1513from 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' )
4946def 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' )
5753def 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' )
6964def test_leak_ssh_calcjob (aiida_computer_ssh ):
7065 """Test whether running a CalcJob over SSH leaks memory.
0 commit comments