[test] Skip not _WORKING IE in subtitle tests; use unittest.skipTest throughout

This commit is contained in:
dirkf
2022-06-08 15:52:21 +01:00
parent 530f4582d0
commit ef044be34b
2 changed files with 6 additions and 4 deletions

View File

@@ -38,6 +38,9 @@ class BaseTestSubtitles(unittest.TestCase):
self.DL = FakeYDL()
self.ie = self.IE()
self.DL.add_info_extractor(self.ie)
if not self.IE.working():
print('Skipping: %s marked as not _WORKING' % self.IE.ie_key())
self.skipTest('IE marked as not _WORKING')
def getInfoDict(self):
info_dict = self.DL.extract_info(self.url, download=False)