Skip to content

Commit

Permalink
[test_execution] Add test for lazy extractors (refs #28780)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Apr 20, 2021
1 parent 5ad69d3 commit c4a451b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/test_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ def test_cmdline_umlauts(self):
_, 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()

0 comments on commit c4a451b

Please sign in to comment.