From 49e74d5d155688c43620bdf05c9c1389e4039928 Mon Sep 17 00:00:00 2001 From: Davor Dundovic <33790330+ddundo@users.noreply.github.com> Date: Wed, 11 Dec 2024 09:59:56 +0100 Subject: [PATCH] Fix cache error in test suite (#253) Closes #252 --- test/conftest.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/test/conftest.py b/test/conftest.py index 3675a4e..134bf6a 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -1,7 +1,7 @@ """ Global pytest configuration. -**Disclaimer: some functions copied from firedrake/src/tests/conftest.py +**Disclaimer: some functions copied from firedrake/tests/firedrake/conftest.py """ @@ -9,21 +9,9 @@ def pytest_configure(config): """ Register an additional marker. - **Disclaimer: copied from firedrake/src/tests/conftest.py + **Disclaimer: copied from firedrake/tests/firedrake/conftest.py """ config.addinivalue_line( "markers", "slow: mark test as slow to run", ) - - -def pytest_runtest_teardown(item, nextitem): - """ - Clear caches after running a test - """ - from firedrake.tsfc_interface import clear_cache - from pyop2.caching import clear_memory_cache - from pyop2.mpi import COMM_WORLD - - clear_cache() - clear_memory_cache(COMM_WORLD)