X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=test%2Ftest_age_restriction.py;h=d500c6edceb6018510b9226d925d9f407b72fcbd;hb=44a5f1718a5657a08082d8fd3201403bf2683c4f;hp=ec3e30572fa6c15e7a3c24839e40f409428f41b2;hpb=a623df4c7b099bc3adfe943c7155e55c6512aeff;p=youtube-dl 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):