From a5c7f7fdab3740b758e836868685d565f46ba021 Mon Sep 17 00:00:00 2001 From: grqx_wsl <173253225+grqx@users.noreply.github.com> Date: Wed, 23 Apr 2025 16:16:51 +1200 Subject: [PATCH] don't always call load_all_plugins --- devscripts/run_tests.py | 2 +- test/helper.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/devscripts/run_tests.py b/devscripts/run_tests.py index e39aa7af02..cf33d443df 100755 --- a/devscripts/run_tests.py +++ b/devscripts/run_tests.py @@ -51,7 +51,7 @@ def run_tests(*tests, pattern=None, ci=False, load_plugins=False): try: return subprocess.call(arguments, env={ **os.environ, - '_YT_DLP_TEST_DO_LOAD_PLUGINS': '1' if load_plugins else '', + 'YTDLP_NO_PLUGINS': '1' if os.environ.get('YTDLP_NO_PLUGINS') or not load_plugins else '', }) except FileNotFoundError: pass diff --git a/test/helper.py b/test/helper.py index e999993fb1..3a73c191ba 100644 --- a/test/helper.py +++ b/test/helper.py @@ -88,7 +88,7 @@ def report_warning(self, message, *args, **kwargs): def gettestcases(include_onlymatching=False): - if os.environ.get('_YT_DLP_TEST_DO_LOAD_PLUGINS'): + if not os.environ.get('YTDLP_NO_PLUGINS'): import yt_dlp.plugins as plugins plugins.load_all_plugins() for ie in yt_dlp.extractor.gen_extractors():