Skip to content

Commit ee26a93

Browse files
author
wangxiaoxin-sherie
committed
xx
1 parent 3496f4e commit ee26a93

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/ut/ops/test_ascend_forwad_context.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import unittest
21
import os
2+
import unittest
33
from unittest import mock
44

55
from vllm_ascend.ascend_forward_context import get_dispatcher_name
@@ -16,6 +16,7 @@ def test_get_dispatcher_name(self):
1616
assert result == "TokenDispatcherWithAll2AllV"
1717
result = get_dispatcher_name(16, False)
1818
assert result == "TokenDispatcherWithMC2"
19-
with mock.patch.dict(os.environ, {"VLLM_ENABLE_FUSED_EXPERTS_ALLGATHER_EP": "1"}):
19+
with mock.patch.dict(os.environ,
20+
{"VLLM_ENABLE_FUSED_EXPERTS_ALLGATHER_EP": "1"}):
2021
result = get_dispatcher_name(16, False)
21-
assert result == "TokenDispatcherWithAllGather"
22+
assert result == "TokenDispatcherWithAllGather"

0 commit comments

Comments
 (0)