[test helper] Correct only_matching test gathering
authorPhilipp Hagemeister <phihag@phihag.de>
Mon, 21 Apr 2014 05:56:51 +0000 (07:56 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Mon, 21 Apr 2014 05:56:51 +0000 (07:56 +0200)
test/helper.py

index 09873aea33c3815dcd56e8acf992156dbbb5974e..da714078dafe22021ac084e4bd46b8d5c0fdbfc2 100644 (file)
@@ -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