Skip to content

Commit 3f934a5

Browse files
authored
Reduce fixture scope from session to module (vllm-project#2187)
SUMMARY: Fix the fixture scope to be proper level so it doesn't hold too long if running the tests from upper level folder. TEST PLAN: Run all tests. --------- Signed-off-by: Dan Huang <dahuang@redhat.com>
1 parent ae3375d commit 3f934a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/llmcompressor/transformers/kv_cache/test_kv_cache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
]
2323

2424

25-
@pytest.fixture(scope="session")
25+
@pytest.fixture(scope="module")
2626
def oneshot_fixture():
2727
def _oneshot_fixture(tmp_path: Path):
2828
num_bits = 8
@@ -63,7 +63,7 @@ def _oneshot_fixture(tmp_path: Path):
6363
return _oneshot_fixture
6464

6565

66-
@pytest.fixture(scope="session")
66+
@pytest.fixture(scope="module")
6767
def kv_cache_fixture():
6868
def _kv_cache_fixture(recipe: str, tmp_path: Path):
6969
num_bits = 8

0 commit comments

Comments
 (0)