transformers
2a540d5c - Tests: skip audio model tests when torchaudio or librosa is missing (#50423)

Commit
22 days ago
Tests: skip audio model tests when torchaudio or librosa is missing (#50423) * Tests: skip the Higgs Audio V2 tokenizer tests without torchaudio The model requires the torchaudio backend, so without it every test failed on the missing-backend placeholder instead of skipping. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Tests: import librosa only when available in the Qwen audio tests Qwen2.5-Omni, Qwen2-Audio and Qwen3-Omni-MoE imported librosa at module level, so without it the whole file failed to collect. Only the integration tests load audio with it: they now require it, and the rest run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Parents
Loading