projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for anitube.se (#1417)
[youtube-dl]
/
test
/
test_age_restriction.py
diff --git
a/test/test_age_restriction.py
b/test/test_age_restriction.py
index ec3e30572fa6c15e7a3c24839e40f409428f41b2..d500c6edceb6018510b9226d925d9f407b72fcbd 100644
(file)
--- a/
test/test_age_restriction.py
+++ b/
test/test_age_restriction.py
@@
-1,14
+1,16
@@
#!/usr/bin/env python
#!/usr/bin/env python
+# Allow direct execution
+import os
import sys
import unittest
import sys
import unittest
+sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+
+from test.helper import global_setup, try_rm
+global_setup()
-# Allow direct execution
-import os
-sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from youtube_dl import YoutubeDL
from youtube_dl import YoutubeDL
-from .helper import try_rm
def _download_restricted(url, filename, age):
def _download_restricted(url, filename, age):