diff --git a/tests/kernels/moe/test_block_int8.py b/tests/kernels/moe/test_block_int8.py index e35ca4caa9..415faafb3a 100644 --- a/tests/kernels/moe/test_block_int8.py +++ b/tests/kernels/moe/test_block_int8.py @@ -82,9 +82,9 @@ def torch_w8a8_block_int8_moe(a, w1, w2, w1_s, w2_s, score, topk, block_shape): ).sum(dim=1) -@pytest.fixture(autouse=True, scope="module") +@pytest.fixture(autouse=True) def setup_cuda(): - """Sets the default CUDA device for all tests in this module.""" + """Sets the default CUDA device before each test in this module.""" torch.set_default_device("cuda") diff --git a/tests/kernels/moe/test_triton_moe_ptpc_fp8.py b/tests/kernels/moe/test_triton_moe_ptpc_fp8.py index 0ab025dcec..01246325c8 100644 --- a/tests/kernels/moe/test_triton_moe_ptpc_fp8.py +++ b/tests/kernels/moe/test_triton_moe_ptpc_fp8.py @@ -102,9 +102,9 @@ def torch_w8a8_per_column_moe(a, w1, w2, w1_s, w2_s, score, topk): ).sum(dim=1) -@pytest.fixture(autouse=True, scope="module") +@pytest.fixture(autouse=True) def setup_cuda(): - """Sets the default CUDA device for all tests in this module.""" + """Sets the default CUDA device before each test in this module.""" torch.set_default_device("cuda")