Skip to content

Commit

Permalink
don't import soundfile in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoestq committed Dec 17, 2024
1 parent 8017790 commit 7d3b902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/packaged_modules/test_audiofolder.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import numpy as np
import pytest
import soundfile as sf

from datasets import Audio, ClassLabel, Features, Value
from datasets.builder import InvalidConfigName
Expand Down Expand Up @@ -195,6 +194,7 @@ def data_files_with_two_splits_and_metadata(request, tmp_path, audio_file):
@pytest.fixture
def data_files_with_zip_archives(tmp_path, audio_file):
import librosa
import soundfile as sf

data_dir = tmp_path / "audiofolder_data_dir_with_zip_archives"
data_dir.mkdir(parents=True, exist_ok=True)
Expand Down

0 comments on commit 7d3b902

Please sign in to comment.