[Misc] [CI/Build] Speed up block manager CPU-only unit tests ~10x by opting-out of GPU cleanup (#3783)

This commit is contained in:
Cade Daniel
2024-04-02 00:49:51 +00:00
committed by GitHub
parent 7d4e1b85e7
commit eb69d68804
3 changed files with 25 additions and 18 deletions
+12
View File
@@ -0,0 +1,12 @@
import pytest
@pytest.fixture()
def should_do_global_cleanup_after_test() -> bool:
"""Disable the global cleanup fixture for tests in this directory. This
provides a ~10x speedup for unit tests that don't load a model to GPU.
This requires that tests in this directory clean up after themselves if they
use the GPU.
"""
return False