Skip to content

Commit

Permalink
Simplify bit-depth test
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Jan 26, 2024
1 parent c47034f commit 5e2f57d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/test_audiofile.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,7 @@ def test_convert_to_wav(tmpdir, normalize, bit_depth, file_extension):
channels=channels,
)
infile = str(tmpdir.join(f'signal.{file_extension}'))
if file_extension == 'mp3':
af.write(infile, signal, sampling_rate)
else:
af.write(infile, signal, sampling_rate, bit_depth=bit_depth)
af.write(infile, signal, sampling_rate, bit_depth=bit_depth)
if file_extension == 'wav':
error_msg = (
f"'{infile}' would be overwritten. "
Expand Down

0 comments on commit 5e2f57d

Please sign in to comment.