[CI][RFC] Replace black-jupyter with ruff-format (#37210)
Co-authored-by: Alison Shao <a.shao@wustl.edu>
This commit is contained in:
co-authored by
Alison Shao
parent
2641e427be
commit
28262c20df
+3
-3
@@ -28,9 +28,9 @@ def _assert_pp_decode_cached_tokens(result, history_len, output_len, label):
|
||||
expected = history_len + output_len
|
||||
actual = result["meta_info"]["cached_tokens"]
|
||||
lower = max(0, expected - 1)
|
||||
assert (
|
||||
lower <= actual <= expected
|
||||
), f"{label}: expected cached_tokens in [{lower}, {expected}], got {actual}"
|
||||
assert lower <= actual <= expected, (
|
||||
f"{label}: expected cached_tokens in [{lower}, {expected}], got {actual}"
|
||||
)
|
||||
|
||||
|
||||
class TestUnifiedQwen3HiCachePP(UnifiedRadixTreeTestMixin, CustomTestCase):
|
||||
|
||||
Reference in New Issue
Block a user