瀏覽代碼

[test helper] Correct only_matching test gathering

Philipp Hagemeister 11 年之前
父節點
當前提交
b9ba5dfa28
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      test/helper.py

+ 1 - 1
test/helper.py

@@ -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