ignore 404 in tearDown when deleting indices

This commit is contained in:
Honza Král
2016-07-12 17:35:31 +02:00
parent 06e9a9851c
commit bf1892b36a
+1 -1
View File
@@ -48,7 +48,7 @@ class ElasticsearchTestCase(TestCase):
def tearDown(self):
super(ElasticsearchTestCase, self).tearDown()
self.client.indices.delete(index='*')
self.client.indices.delete(index='*', ignore=404)
self.client.indices.delete_template(name='*', ignore=404)
@property