From 1137d72d4852fde5067f53f4fc364cce7f2d8355 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 27 Nov 2023 18:36:15 +0100 Subject: [PATCH] [tests] skip test_init for BaseExtractor classes without instances --- test/test_extractor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_extractor.py b/test/test_extractor.py index 29ccf97f..d2dd643c 100644 --- a/test/test_extractor.py +++ b/test/test_extractor.py @@ -142,6 +142,8 @@ class TestExtractorModule(unittest.TestCase): if cls.category == "ytdl": continue extr = cls.from_url(cls.example) + if not extr and cls.basecategory and not cls.instances: + continue extr.initialize() extr.finalize()