From 1bdae7d312ceac9ecef8a9a215d958811a9fb6be Mon Sep 17 00:00:00 2001 From: pukkandan Date: Thu, 22 Apr 2021 14:32:54 +0530 Subject: Update to ytdl-commit-7e8b3f9 [youtube] Remove unused code https://github.com/ytdl-org/youtube-dl/commit/7e8b3f9439ebefb3a3a4e5da9c0bd2b595976438 --- test/test_execution.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/test_execution.py') diff --git a/test/test_execution.py b/test/test_execution.py index 2aea4df1b..8a0d65bfb 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', 'yt_dlp/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('yt_dlp/extractor/lazy_extractors.py') + except (IOError, OSError): + pass + if __name__ == '__main__': unittest.main() -- cgit v1.2.3