A feature-rich command-line audio/video downloader
[tests] Remove global_setup function
Philipp Hagemeisterd0efb9ec9a85
diff --git a/test/helper.py b/test/helper.pyindex d7bf7a8280..b1f421ac58 100644--- a/test/helper.py+++ b/test/helper.py@@ -12,10 +12,6 @@ from youtube_dl import YoutubeDLfrom youtube_dl.utils import preferredencoding-def global_setup():- youtube_dl._setup_opener(timeout=10)--def get_params(override=None):PARAMETERS_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)),"parameters.json")diff --git a/test/test_age_restriction.py b/test/test_age_restriction.pyindex 506572e9ee..c9cdb96cb3 100644--- a/test/test_age_restriction.py+++ b/test/test_age_restriction.py@@ -6,8 +6,7 @@ import sysimport unittestsys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))-from test.helper import global_setup, try_rm-global_setup()+from test.helper import try_rmfrom youtube_dl import YoutubeDLdiff --git a/test/test_download.py b/test/test_download.pyindex fe7f7b8cb5..dd5818dba9 100644--- a/test/test_download.py+++ b/test/test_download.py@@ -9,12 +9,10 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))from test.helper import (get_params,get_testcases,- global_setup,try_rm,md5,report_warning)-global_setup()import hashlibdiff --git a/test/test_playlists.py b/test/test_playlists.pyindex 7c67239a43..167801ae24 100644--- a/test/test_playlists.py+++ b/test/test_playlists.py@@ -8,8 +8,7 @@ import sysimport unittestsys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))-from test.helper import FakeYDL, global_setup-global_setup()+from test.helper import FakeYDLfrom youtube_dl.extractor import (diff --git a/test/test_subtitles.py b/test/test_subtitles.pyindex 06a304879d..94a1f771d1 100644--- a/test/test_subtitles.py+++ b/test/test_subtitles.py@@ -6,8 +6,7 @@ import sysimport unittestsys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))-from test.helper import FakeYDL, global_setup, md5-global_setup()+from test.helper import FakeYDL, md5from youtube_dl.extractor import (diff --git a/test/test_write_annotations.py b/test/test_write_annotations.pyindex 35defb8953..eac53b285a 100644--- a/test/test_write_annotations.py+++ b/test/test_write_annotations.py@@ -7,8 +7,7 @@ import sysimport unittestsys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))-from test.helper import get_params, global_setup, try_rm-global_setup()+from test.helper import get_params, try_rmimport iodiff --git a/test/test_write_info_json.py b/test/test_write_info_json.pyindex 30c4859fda..d7177611b5 100644--- a/test/test_write_info_json.py+++ b/test/test_write_info_json.py@@ -7,8 +7,7 @@ import sysimport unittestsys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))-from test.helper import get_params, global_setup-global_setup()+from test.helper import get_paramsimport iodiff --git a/test/test_youtube_lists.py b/test/test_youtube_lists.pyindex 938517a2de..8fd073f314 100644--- a/test/test_youtube_lists.py+++ b/test/test_youtube_lists.py@@ -6,8 +6,7 @@ import sysimport unittestsys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))-from test.helper import FakeYDL, global_setup-global_setup()+from test.helper import FakeYDLfrom youtube_dl.extractor import (diff --git a/test/test_youtube_signature.py b/test/test_youtube_signature.pyindex 5e1ff5eb0e..056700614b 100644--- a/test/test_youtube_signature.py+++ b/test/test_youtube_signature.py@@ -6,9 +6,6 @@ import sysimport unittestsys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))-from test.helper import global_setup-global_setup()-import ioimport re