瀏覽代碼

[test/helper] Allow dicts for mincount

Sergey M․ 10 年之前
父節點
當前提交
645f814544
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      test/helper.py

+ 2 - 2
test/helper.py

@@ -133,8 +133,8 @@ def expect_info_dict(self, got_dict, expected_dict):
             elif isinstance(expected, compat_str) and expected.startswith('mincount:'):
                 got = got_dict.get(info_field)
                 self.assertTrue(
-                    isinstance(got, list),
-                    'Expected field %s to be a list, but it is of type %s' % (
+                    isinstance(got, (list, dict)),
+                    'Expected field %s to be a list or a dict, but it is of type %s' % (
                         info_field, type(got).__name__))
                 expected_num = int(expected.partition(':')[2])
                 assertGreaterEqual(