From c0b7bf76f5c89331076cfa266bfc3bb2b1a9c2b3 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Sun, 16 Jun 2024 08:18:24 +0100 Subject: [PATCH] Clean up tmpdir after normalise tests --- tests/test_helpers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_helpers.py b/tests/test_helpers.py index 141db58..8c9181e 100644 --- a/tests/test_helpers.py +++ b/tests/test_helpers.py @@ -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)