From 060ac76257a8c1f7370a8a571821c1d73377701f Mon Sep 17 00:00:00 2001 From: pukkandan Date: Fri, 23 Jul 2021 20:18:15 +0530 Subject: [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 --- test/test_post_hooks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/test_post_hooks.py') diff --git a/test/test_post_hooks.py b/test/test_post_hooks.py index 3f9a61c1e..1555a23e0 100644 --- a/test/test_post_hooks.py +++ b/test/test_post_hooks.py @@ -7,7 +7,7 @@ import sys import unittest sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) -from test.helper import get_params, try_rm +from test.helper import get_params, try_rm, is_download_test import yt_dlp.YoutubeDL from yt_dlp.utils import DownloadError @@ -22,6 +22,7 @@ TEST_ID = 'gr51aVj-mLg' EXPECTED_NAME = 'gr51aVj-mLg' +@is_download_test class TestPostHooks(unittest.TestCase): def setUp(self): self.stored_name_1 = None -- cgit v1.2.3