]> jfr.im git - yt-dlp.git/blobdiff - test/test_age_restriction.py
[youtube] Misc cleanup (#577)
[yt-dlp.git] / test / test_age_restriction.py
index b73bdd7674cf79f40cb54792e007d806ab968af7..70f9f48455ab0fe424acff5b9908ab220e974dc2 100644 (file)
@@ -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 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_dlc 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))