Clean up tmpdir after normalise tests

This commit is contained in:
Keith Edmunds 2024-06-16 08:18:24 +01:00
parent 5624d77519
commit c0b7bf76f5

View File

@ -1,5 +1,6 @@
# Standard library imports
import datetime as dt
import os
import shutil
import tempfile
import unittest
@ -95,7 +96,9 @@ class TestMMHelpers(unittest.TestCase):
_, mp3_temp_path = tempfile.mkstemp(suffix=".mp3")
shutil.copyfile("testdata/isa.mp3", mp3_temp_path)
normalise_track(mp3_temp_path)
os.unlink(mp3_temp_path)
_, flac_temp_path = tempfile.mkstemp(suffix=".flac")
shutil.copyfile("testdata/isa.flac", flac_temp_path)
normalise_track(flac_temp_path)
os.unlink(flac_temp_path)