aboutsummaryrefslogtreecommitdiff
path: root/test/test_age_restriction.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_age_restriction.py')
-rw-r--r--test/test_age_restriction.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/test_age_restriction.py b/test/test_age_restriction.py
index ec3e30572..d500c6edc 100644
--- a/test/test_age_restriction.py
+++ b/test/test_age_restriction.py
@@ -1,14 +1,16 @@
#!/usr/bin/env python
+# Allow direct execution
+import os
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 .helper import try_rm
def _download_restricted(url, filename, age):