aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_download.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/test_download.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/test_download.py')
-rw-r--r--test/test_download.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_download.py b/test/test_download.py
index 23d733f44..e4485ce81 100644
--- a/test/test_download.py
+++ b/test/test_download.py
@@ -10,12 +10,13 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from test.helper import (
assertGreaterEqual,
+ expect_info_dict,
expect_warnings,
get_params,
gettestcases,
- expect_info_dict,
- try_rm,
+ is_download_test,
report_warning,
+ try_rm,
)
@@ -64,6 +65,7 @@ def _file_md5(fn):
defs = gettestcases()
+@is_download_test
class TestDownload(unittest.TestCase):
# Parallel testing in nosetests. See
# http://nose.readthedocs.org/en/latest/doc_tests/test_multiprocess/multiprocess.html