From: Philipp Hagemeister Date: Mon, 21 Apr 2014 05:56:51 +0000 (+0200) Subject: [test helper] Correct only_matching test gathering X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=b9ba5dfa28baa4541016b49eadf74d731dc8936c;p=youtube-dl [test helper] Correct only_matching test gathering --- 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