Skip to content

Commit b5933b2

Browse files
committed
Fix fixture path.
1 parent e12f335 commit b5933b2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
41.9 KB
Binary file not shown.

tests/test_io.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,15 +1298,15 @@ def test_mp3_in_wav_format():
12981298
This is a valid but unusual format where a WAV container holds MP3 data.
12991299
Some audio software produces files in this format.
13001300
"""
1301-
filename = os.path.join(os.path.dirname(__file__), "audio", "correct", "mp3_in_wav_44100Hz.wav")
1301+
filename = os.path.join(os.path.dirname(__file__), "audio", "correct", "mp3_in_wav.wav")
13021302
with pedalboard.io.AudioFile(filename) as f:
13031303
assert f.samplerate == 44100
1304-
assert f.num_channels == 2
1304+
assert f.num_channels == 1
13051305
assert f.frames >= 44100 # At least 1 second of audio
13061306

13071307
# Read the audio and verify it's not silent
13081308
audio = f.read(f.frames)
1309-
assert audio.shape[0] == 2
1309+
assert audio.shape[0] == 1
13101310
assert np.amax(np.abs(audio)) > 0.1 # Should have actual audio content
13111311

13121312

0 commit comments

Comments
 (0)