From 582fad70f547b7008495400b38c8b32c3412cd27 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Mon, 8 Nov 2021 00:23:57 +0530 Subject: [outtmpl] Do not traverse `None` Closes #1585 --- test/test_YoutubeDL.py | 1 + 1 file changed, 1 insertion(+) (limited to 'test/test_YoutubeDL.py') diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py index bd2d752e2..40c4169c8 100644 --- a/test/test_YoutubeDL.py +++ b/test/test_YoutubeDL.py @@ -737,6 +737,7 @@ class TestYoutubeDL(unittest.TestCase): test(NA_TEST_OUTTMPL, 'NA-NA-def-1234.mp4') test(NA_TEST_OUTTMPL, 'none-none-def-1234.mp4', outtmpl_na_placeholder='none') test(NA_TEST_OUTTMPL, '--def-1234.mp4', outtmpl_na_placeholder='') + test('%(non_existent.0)s', 'NA') # String formatting FMT_TEST_OUTTMPL = '%%(height)%s.%%(ext)s' -- cgit v1.2.3