X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=test%2Fhelper.py;h=da714078dafe22021ac084e4bd46b8d5c0fdbfc2;hb=8a7a4a979683a6a48af0eea039ed392934f89b0a;hp=09873aea33c3815dcd56e8acf992156dbbb5974e;hpb=117a7d194432788435d9a2e697378c8bfc9a640d;p=youtube-dl diff --git a/test/helper.py b/test/helper.py index 09873aea3..da714078d 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