mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
test(rust): update panic wheel smoke probe
This commit is contained in:
parent
e780aeddd0
commit
ec09ba29d8
1 changed files with 5 additions and 5 deletions
10
.github/scripts/smoke_test_native_wheel.py
vendored
10
.github/scripts/smoke_test_native_wheel.py
vendored
|
|
@ -19,9 +19,9 @@ if spec is None or spec.loader is None:
|
|||
module = module_from_spec(spec)
|
||||
spec.loader.exec_module(module)
|
||||
|
||||
before = module.gil_stats()
|
||||
if not isinstance(before.get("releases"), int):
|
||||
raise AssertionError(f"unexpected gil_stats result: {before!r}")
|
||||
before = module.chat_completions_decline("unsupported", [], {}, None)
|
||||
if not isinstance(before, str):
|
||||
raise AssertionError(f"unexpected capability result: {before!r}")
|
||||
|
||||
try:
|
||||
module._panic_for_test()
|
||||
|
|
@ -31,8 +31,8 @@ except BaseException as error:
|
|||
else:
|
||||
raise AssertionError("Rust panic returned without raising")
|
||||
|
||||
after = module.gil_stats()
|
||||
if not isinstance(after.get("releases"), int):
|
||||
after = module.chat_completions_decline("unsupported", [], {}, None)
|
||||
if after != before:
|
||||
raise AssertionError(f"native module unusable after panic: {after!r}")
|
||||
"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue