diff options
author | Jesús <heckyel@hyperbola.info> | 2021-10-18 10:04:47 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-10-18 10:04:47 -0500 |
commit | cabfc066cb929d5496d984a0fde895a059dc0648 (patch) | |
tree | cc0ab44a1c6113c6116fa15e809204f98cee1e73 /test/test_age_restriction.py | |
parent | d98d94032e3b45d4a1dc21404e2a520964aadedd (diff) | |
download | hypervideo-pre-cabfc066cb929d5496d984a0fde895a059dc0648.tar.lz hypervideo-pre-cabfc066cb929d5496d984a0fde895a059dc0648.tar.xz hypervideo-pre-cabfc066cb929d5496d984a0fde895a059dc0648.zip |
update from upstream
Diffstat (limited to 'test/test_age_restriction.py')
-rw-r--r-- | test/test_age_restriction.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_age_restriction.py b/test/test_age_restriction.py index 6f5513faa..70f9f4845 100644 --- a/test/test_age_restriction.py +++ b/test/test_age_restriction.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals # Allow direct execution @@ -7,10 +7,9 @@ import sys import unittest sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) -from test.helper import try_rm +from test.helper import try_rm, is_download_test - -from youtube_dl import YoutubeDL +from yt_dlp import YoutubeDL def _download_restricted(url, filename, age): @@ -32,6 +31,7 @@ def _download_restricted(url, filename, age): return res +@is_download_test class TestAgeRestriction(unittest.TestCase): def _assert_restricted(self, url, filename, age, old_age=None): self.assertTrue(_download_restricted(url, filename, old_age)) |