aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-11-08 00:23:57 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-11-08 00:26:08 +0530
commit582fad70f547b7008495400b38c8b32c3412cd27 (patch)
tree9d18fc97d9b6f1e2054b376d9965a63091ef8117 /test
parentaeec0e44e243dc625c8ff19964a624188d43e84b (diff)
downloadhypervideo-pre-582fad70f547b7008495400b38c8b32c3412cd27.tar.lz
hypervideo-pre-582fad70f547b7008495400b38c8b32c3412cd27.tar.xz
hypervideo-pre-582fad70f547b7008495400b38c8b32c3412cd27.zip
[outtmpl] Do not traverse `None`
Closes #1585
Diffstat (limited to 'test')
-rw-r--r--test/test_YoutubeDL.py1
1 files changed, 1 insertions, 0 deletions
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'