]> jfr.im git - yt-dlp.git/commitdiff
[test] Add Python 3.10 (#480)
authorxtkoba <redacted>
Fri, 23 Jul 2021 15:02:48 +0000 (00:02 +0900)
committerGitHub <redacted>
Fri, 23 Jul 2021 15:02:48 +0000 (20:32 +0530)
Authored-by: pukkandan, xtkoba
.github/workflows/core.yml
.github/workflows/download.yml
yt_dlp/utils.py

index f2d31c1342dd208ecfb23905807c392c96d80675..4fb65e0c1513a0fe9087b32b9398555227e83c94 100644 (file)
@@ -10,7 +10,7 @@ jobs:
       matrix:
         os: [ubuntu-18.04]
         # py3.9 is in quick-test
-        python-version: [3.7, 3.8, pypy-3.6, pypy-3.7]
+        python-version: [3.7, 3.8, 3.10-dev, pypy-3.6, pypy-3.7]
         run-tests-ext: [sh]
         include:
         # atleast one of the tests must be in windows
index 3b63fdd35d0bfc8af815363e006d0a68a1ad937a..dd242fa566a56d4c322584b1778f80ca22144c6b 100644 (file)
@@ -9,7 +9,7 @@ jobs:
       fail-fast: true
       matrix:
         os: [ubuntu-18.04]
-        python-version: [3.7, 3.8, 3.9, pypy-3.6, pypy-3.7]
+        python-version: [3.7, 3.8, 3.9, 3.10-dev, pypy-3.6, pypy-3.7]
         run-tests-ext: [sh]
         include:
         - os: windows-latest
index 4d12c0a8e2db5de7e892bc4b255721ea9683b6bc..4ff53573f1fdbd50907d9a310a3100331f545f6f 100644 (file)
@@ -3964,7 +3964,7 @@ def detect_exe_version(output, version_re=None, unrecognized='present'):
         return unrecognized
 
 
-class LazyList(collections.Sequence):
+class LazyList(collections.abc.Sequence):
     ''' Lazy immutable list from an iterable
     Note that slices of a LazyList are lists and not LazyList'''
 
@@ -6313,4 +6313,4 @@ def traverse_dict(dictn, keys, casesense=True):
 
 
 def variadic(x, allowed_types=(str, bytes)):
-    return x if isinstance(x, collections.Iterable) and not isinstance(x, allowed_types) else (x,)
+    return x if isinstance(x, collections.abc.Iterable) and not isinstance(x, allowed_types) else (x,)