mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-27 21:59:17 +01:00
[test helper] Correct only_matching test gathering
This commit is contained in:
parent
4086f11929
commit
b9ba5dfa28
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue