Parcourir la source

[test helper] Correct only_matching test gathering

Philipp Hagemeister il y a 11 ans
Parent
commit
b9ba5dfa28
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      test/helper.py

+ 1 - 1
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