mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-09-11 20:12:41 +02:00
[test helper] Correct only_matching test gathering
This commit is contained in:
parent
4086f11929
commit
b9ba5dfa28
@ -85,7 +85,7 @@ def gettestcases(include_onlymatching=False):
|
|||||||
else:
|
else:
|
||||||
tests = getattr(ie, '_TESTS', [])
|
tests = getattr(ie, '_TESTS', [])
|
||||||
for t in 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
|
continue
|
||||||
t['name'] = type(ie).__name__[:-len('IE')]
|
t['name'] = type(ie).__name__[:-len('IE')]
|
||||||
yield t
|
yield t
|
||||||
|
Loading…
Reference in New Issue
Block a user