aboutsummaryrefslogtreecommitdiffstats
path: root/test/helper.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-07-23 20:18:15 +0530
committerGitHub <noreply@github.com>2021-07-23 20:18:15 +0530
commit060ac76257a8c1f7370a8a571821c1d73377701f (patch)
tree00151756376ba250a7de158f3218ae58b89c560b /test/helper.py
parent063c409dfb6b0d525cbbd6ba1fbb53db2c0c99db (diff)
downloadhypervideo-pre-060ac76257a8c1f7370a8a571821c1d73377701f.tar.lz
hypervideo-pre-060ac76257a8c1f7370a8a571821c1d73377701f.tar.xz
hypervideo-pre-060ac76257a8c1f7370a8a571821c1d73377701f.zip
[test] Use `pytest` instead of `nosetests` (#482)
`nosetests` is no longer being maintained : https://github.com/nose-devs/nose/issues/1099 and will stop working in py 3.10 as can be seen in #480
Diffstat (limited to 'test/helper.py')
-rw-r--r--test/helper.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/helper.py b/test/helper.py
index 963c40508..b40ffe3ce 100644
--- a/test/helper.py
+++ b/test/helper.py
@@ -22,6 +22,14 @@ from yt_dlp.utils import (
)
+if "pytest" in sys.modules:
+ import pytest
+ is_download_test = pytest.mark.download
+else:
+ def is_download_test(testClass):
+ return testClass
+
+
def get_params(override=None):
PARAMETERS_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)),
"parameters.json")