From b3152c00d6b319773489dad9aac571bba25fefc0 Mon Sep 17 00:00:00 2001
From: Pierre Mdawar
Date: Thu, 3 Jan 2019 15:48:46 +0200
Subject: [PATCH] [tests] fix test, the returned path should be the new path
---
test/test_YoutubeDL.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py
index f0f5a8470..59a6f3dfb 100644
--- a/test/test_YoutubeDL.py
+++ b/test/test_YoutubeDL.py
@@ -605,7 +605,9 @@ class TestYoutubeDL(unittest.TestCase):
def run(self, info):
with open(audiofile, 'wt') as f:
f.write('EXAMPLE')
- return [info['filepath']], info
+ old_file = info['filepath']
+ info['filepath'] = audiofile
+ return [old_file], info
def run_pp(params, PP):
with open(filename, 'wt') as f: