1
0
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:
Mike Fährmann 2018-08-02 14:48:51 +02:00
parent df082e923c
commit 42a346413b
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -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)