[tests] fix 'pattern' not being compiled before running a test

fixes regression introduced in 3fa74ca4
This commit is contained in:
Mike Fährmann
2024-07-31 23:32:18 +02:00
parent c372242a06
commit 42388dc819

View File

@@ -94,6 +94,7 @@ class TestExtractorResults(unittest.TestCase):
result.pop("#comment", None)
auth = result.pop("#auth", None)
extractor.find(result["#url"])
extr = result["#class"].from_url(result["#url"])
if not extr:
raise exception.NoExtractorError()