From 8b85d888b5a401e628f37de4141d4aa2b39622d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Fri, 8 May 2015 21:41:13 +0200 Subject: [PATCH] Add debug info to catch: // handling 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 c6386489..b9eb2f26 100644 --- a/test_elasticsearch/test_server/test_common.py +++ b/test_elasticsearch/test_server/test_common.py @@ -168,7 +168,7 @@ class YamlTestCase(ElasticsearchTestCase): if catch in CATCH_CODES: self.assertEquals(CATCH_CODES[catch], exception.status_code) elif catch[0] == '/' and catch[-1] == '/': - self.assertTrue(re.search(catch[1:-1], repr(exception.info))) + self.assertTrue(re.search(catch[1:-1], repr(exception.info)), '%s not in %r' % (catch, exception.info)) self.last_response = exception.info def run_gt(self, action):