diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2023-05-20 03:06:23 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2023-05-20 04:23:41 +0530 |
commit | 6f2287cb18cbfb27518f068d868fa9390fee78ad (patch) | |
tree | 2f4323423a1f95373427f5fd2bbc0ebe0071427a /test/test_YoutubeDL.py | |
parent | 1d7656184c6b8aa46b29149893894b3c24f1df00 (diff) | |
download | hypervideo-pre-6f2287cb18cbfb27518f068d868fa9390fee78ad.tar.lz hypervideo-pre-6f2287cb18cbfb27518f068d868fa9390fee78ad.tar.xz hypervideo-pre-6f2287cb18cbfb27518f068d868fa9390fee78ad.zip |
[cleanup] Misc
Closes #7030, closes #6967
Diffstat (limited to 'test/test_YoutubeDL.py')
-rw-r--r-- | test/test_YoutubeDL.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py index 3c26bd7c6..477fd220e 100644 --- a/test/test_YoutubeDL.py +++ b/test/test_YoutubeDL.py @@ -757,7 +757,7 @@ class TestYoutubeDL(unittest.TestCase): test('%(id)r %(height)r', "'1234' 1080") test('%(ext)s-%(ext|def)d', 'mp4-def') test('%(width|0)04d', '0000') - test('a%(width|)d', 'a', outtmpl_na_placeholder='none') + test('a%(width|b)d', 'ab', outtmpl_na_placeholder='none') FORMATS = self.outtmpl_info['formats'] sanitize = lambda x: x.replace(':', ':').replace('"', """).replace('\n', ' ') @@ -871,12 +871,12 @@ class TestYoutubeDL(unittest.TestCase): class SimplePP(PostProcessor): def run(self, info): - with open(audiofile, 'wt') as f: + with open(audiofile, 'w') as f: f.write('EXAMPLE') return [info['filepath']], info def run_pp(params, PP): - with open(filename, 'wt') as f: + with open(filename, 'w') as f: f.write('EXAMPLE') ydl = YoutubeDL(params) ydl.add_post_processor(PP()) @@ -895,7 +895,7 @@ class TestYoutubeDL(unittest.TestCase): class ModifierPP(PostProcessor): def run(self, info): - with open(info['filepath'], 'wt') as f: + with open(info['filepath'], 'w') as f: f.write('MODIFIED') return [], info |