From e8cdebb0341478c1d22bb8fe5da96ebdc00d794d Mon Sep 17 00:00:00 2001 From: Alain Riou <alain.riou14000@yahoo.com> Date: Tue, 16 Jan 2024 23:13:28 +0100 Subject: [PATCH] test gpu --- tests/test_cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index 1cb2e51..ef40055 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -36,4 +36,6 @@ def test_cli_gpu(file, fmt, convert_to_freq): suffix = ".semitones." + fmt option = " -F" os.system(f"pesto {file} --gpu 0 --export_format " + fmt + option) - assert os.path.isfile(file.rsplit('.', 1)[0] + suffix) + out_file = file.rsplit('.', 1)[0] + suffix + assert os.path.isfile(out_file) + os.unlink(out_file) -- GitLab