mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-25 12:12:34 +01:00
fix "re:" prefix for keyword tests
This commit is contained in:
parent
df082e923c
commit
42a346413b
@ -117,7 +117,7 @@ class TestExtractorResults(unittest.TestCase):
|
||||
continue
|
||||
elif isinstance(test, type):
|
||||
self.assertIsInstance(value, test)
|
||||
elif isinstance(test, str) and value.startswith("re:"):
|
||||
elif isinstance(test, str) and test.startswith("re:"):
|
||||
self.assertRegex(value, test[3:])
|
||||
else:
|
||||
self.assertEqual(value, test)
|
||||
|
Loading…
Reference in New Issue
Block a user