Skip to content

A feature-rich command-line audio/video downloader

[test helper] Correct only_matching test gathering

Philipp Hagemeisterb9ba5dfa28ba
diff --git a/test/helper.py b/test/helper.py
index 09873aea33..da714078da 100644
--- a/test/helper.py
+++ b/test/helper.py
@@ -85,7 +85,7 @@ def gettestcases(include_onlymatching=False):
else:
tests = getattr(ie, '_TESTS', [])
for t in tests:
- if not include_onlymatching and getattr(t, 'only_matching', False):
+ if not include_onlymatching and t.get('only_matching', False):
continue
t['name'] = type(ie).__name__[:-len('IE')]
yield t