[workflows/ci.yml] Fix test support for Py 2.6

This commit is contained in:
dirkf
2023-06-30 03:52:39 +01:00
parent 2500300c2a
commit b08a580906
3 changed files with 83 additions and 56 deletions

View File

@ -6,10 +6,6 @@ import os
from os.path import dirname as dirn
import sys
from youtube_dl.compat import compat_register_utf8
compat_register_utf8()
print('WARNING: Lazy loading extractors is an experimental feature that may not always work', file=sys.stderr)
sys.path.insert(0, dirn(dirn((os.path.abspath(__file__)))))
@ -23,6 +19,10 @@ try:
except OSError:
pass
from youtube_dl.compat import compat_register_utf8
compat_register_utf8()
from youtube_dl.extractor import _ALL_CLASSES
from youtube_dl.extractor.common import InfoExtractor, SearchInfoExtractor