Skip to content

Commit e9e9577

Browse files
committed
fix UT
Signed-off-by: zzhx1 <[email protected]>
1 parent d6abfd8 commit e9e9577

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/ut/attention/test_mla_v1.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,9 +649,10 @@ def test_build_for_graph_capture_prefill(self, mock_distributed):
649649
str(ctx.exception))
650650

651651

652-
class TestAscendMLAImpl(TestBase):
652+
class TestAscendMLAImpl:
653653

654-
def setUp(self):
654+
@pytest.fixture(autouse=True)
655+
def setup(self, mock_distributed):
655656
num_heads = 256
656657
head_size = 1024
657658
scale = 0.1

0 commit comments

Comments
 (0)