From 1a6bcdad992ce158e361d572a1ecb7b2688ee3ba Mon Sep 17 00:00:00 2001 From: Lakshmi Prasanna Goutham Pratapa Date: Tue, 5 Jun 2018 18:55:41 +0530 Subject: [PATCH] Fix py27 and py35 tests-failure. This commit is to fix the failing py27 and py35. The issue is it raised webtest.api error and keyerror is asserted until now. Change-Id: Ie4f30b8204bfd039f81a49b57b11836fa8200017 --- kingbird/tests/unit/api/v1/controllers/test_sync_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kingbird/tests/unit/api/v1/controllers/test_sync_manager.py b/kingbird/tests/unit/api/v1/controllers/test_sync_manager.py index d60e1ac..e527281 100644 --- a/kingbird/tests/unit/api/v1/controllers/test_sync_manager.py +++ b/kingbird/tests/unit/api/v1/controllers/test_sync_manager.py @@ -372,7 +372,7 @@ class TestResourceManager(testroot.KBApiTest): delete_url = FAKE_URL + '/' + FAKE_JOB mock_db_api.sync_job_status.return_value = consts.JOB_PROGRESS self.assertRaises( - KeyError, + webtest.app.AppError, self.app.delete_json, delete_url, headers=FAKE_HEADERS