mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-06-28 17:38:35 +00:00
don't always call load_all_plugins
This commit is contained in:
parent
d147c9c369
commit
a5c7f7fdab
@ -51,7 +51,7 @@ def run_tests(*tests, pattern=None, ci=False, load_plugins=False):
|
|||||||
try:
|
try:
|
||||||
return subprocess.call(arguments, env={
|
return subprocess.call(arguments, env={
|
||||||
**os.environ,
|
**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:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
|
@ -88,7 +88,7 @@ def report_warning(self, message, *args, **kwargs):
|
|||||||
|
|
||||||
|
|
||||||
def gettestcases(include_onlymatching=False):
|
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
|
import yt_dlp.plugins as plugins
|
||||||
plugins.load_all_plugins()
|
plugins.load_all_plugins()
|
||||||
for ie in yt_dlp.extractor.gen_extractors():
|
for ie in yt_dlp.extractor.gen_extractors():
|
||||||
|
Loading…
Reference in New Issue
Block a user