summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2021-04-21 04:47:29 +0700
committerSergey M․ <[email protected]>2021-04-21 04:47:29 +0700
commitc4a451bcdd2b743fdb96fcbae261c86ed91022ba (patch)
tree89c392ae43c5b7fdf13752255a34bf683f72cf48 /test
parent5ad69d3d0e7d1d8d15a1f2497d602b1b91fcc74a (diff)
downloadyoutube-dl-c4a451bcdd2b743fdb96fcbae261c86ed91022ba.tar.gz
youtube-dl-c4a451bcdd2b743fdb96fcbae261c86ed91022ba.zip
[test_execution] Add test for lazy extractors (refs #28780)
Diffstat (limited to 'test')
-rw-r--r--test/test_execution.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_execution.py b/test/test_execution.py
index 11661bb68..32948d93e 100644
--- a/test/test_execution.py
+++ b/test/test_execution.py
@@ -39,6 +39,16 @@ class TestExecution(unittest.TestCase):
_, stderr = p.communicate()
self.assertFalse(stderr)
+ def test_lazy_extractors(self):
+ try:
+ subprocess.check_call([sys.executable, 'devscripts/make_lazy_extractors.py', 'youtube_dl/extractor/lazy_extractors.py'], cwd=rootDir, stdout=_DEV_NULL)
+ subprocess.check_call([sys.executable, 'test/test_all_urls.py'], cwd=rootDir, stdout=_DEV_NULL)
+ finally:
+ try:
+ os.remove('youtube_dl/extractor/lazy_extractors.py')
+ except (IOError, OSError):
+ pass
+
if __name__ == '__main__':
unittest.main()