chore: fix some typos (#18577)
Co-authored-by: Liangsheng Yin <lsyincs@gmail.com>
This commit is contained in:
co-authored by
Liangsheng Yin
parent
a2c38f7796
commit
8d2892330c
@@ -32,7 +32,7 @@ TEST_SUITE = dict(
|
||||
|
||||
class EngineWrapper:
|
||||
"""
|
||||
A wrapper around Sglang engine to mock multi instance cases such as RL traing.
|
||||
A wrapper around Sglang engine to mock multi instance cases such as RL training.
|
||||
|
||||
"""
|
||||
|
||||
|
||||
@@ -198,17 +198,17 @@ def test_edge_case():
|
||||
assert result1 == result2
|
||||
print("Pass for normal test")
|
||||
|
||||
class UnkownType:
|
||||
class UnknownType:
|
||||
pass
|
||||
|
||||
try:
|
||||
list_dispatcher(UnkownType())
|
||||
list_dispatcher(UnknownType())
|
||||
print("exception was thrown from list version as expected")
|
||||
except ValueError:
|
||||
print("exception thrown from list version was processed...")
|
||||
|
||||
try:
|
||||
dict_dispatcher(UnkownType())
|
||||
dict_dispatcher(UnknownType())
|
||||
print("exception was thrown from dict version as expected")
|
||||
except ValueError:
|
||||
print("exception thrown from dict version was processed...")
|
||||
|
||||
Reference in New Issue
Block a user