Enhance sglang engine dumping tests in dump comparator (#19681)

This commit is contained in:
fzyzcjy
2026-03-02 18:46:03 +08:00
committed by GitHub
parent abdc0ee71f
commit 3ebd85bf1c
2 changed files with 249 additions and 104 deletions
@@ -1,7 +1,30 @@
import warnings
warnings.filterwarnings(
"ignore", message="builtin type Swig.*", category=DeprecationWarning
)
import pytest
from sglang.srt.debug_utils.comparator.output_types import report_sink
collect_ignore_glob: list[str] = []
def pytest_configure(config: pytest.Config) -> None:
config.addinivalue_line(
"filterwarnings",
"ignore:Unknown config option. asyncio_mode:pytest.PytestConfigWarning",
)
config.addinivalue_line(
"filterwarnings",
"ignore:builtin type Swig.*:DeprecationWarning",
)
config.addinivalue_line(
"filterwarnings",
"ignore:Named tensors and all their associated APIs:UserWarning",
)
@pytest.fixture(autouse=True)
def _reset_report_sink() -> None: