From cca84058ffa43bb29661ae217c371ea9529df0fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Mon, 16 Feb 2015 16:15:56 +0100 Subject: [PATCH] Sometimes we have dicts indexed by integers in yaml tests --- test_elasticsearch/test_server/test_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_elasticsearch/test_server/test_common.py b/test_elasticsearch/test_server/test_common.py index e310e2db..3f456634 100644 --- a/test_elasticsearch/test_server/test_common.py +++ b/test_elasticsearch/test_server/test_common.py @@ -72,7 +72,7 @@ class YamlTestCase(ElasticsearchTestCase): continue step = step.replace('\1', '.') step = self._resolve(step) - if step.isdigit(): + if step.isdigit() and step not in value: step = int(step) self.assertIsInstance(value, list) self.assertGreater(len(value), step)