From notifications-return-14392-archive-asf-public=cust-asf.ponee.io@libcloud.apache.org Fri Mar 9 05:55:45 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id B3D9E18064C for ; Fri, 9 Mar 2018 05:55:44 +0100 (CET) Received: (qmail 53815 invoked by uid 500); 9 Mar 2018 04:55:43 -0000 Mailing-List: contact notifications-help@libcloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@libcloud.apache.org Delivered-To: mailing list notifications@libcloud.apache.org Received: (qmail 53801 invoked by uid 500); 9 Mar 2018 04:55:43 -0000 Delivered-To: apmail-libcloud-commits@libcloud.apache.org Received: (qmail 53798 invoked by uid 99); 9 Mar 2018 04:55:43 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2018 04:55:43 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 04D9DF6516; Fri, 9 Mar 2018 04:55:43 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: quentinp@apache.org To: commits@libcloud.apache.org Date: Fri, 09 Mar 2018 04:55:43 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/6] libcloud git commit: remove dead returns test_openstack.py Repository: libcloud Updated Branches: refs/heads/trunk 2b298b7cd -> 4d0f9e0a6 remove dead returns test_openstack.py removed unreachable return statements in test cases Closes #1178 Signed-off-by: Quentin Pradet Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/4dd20ff8 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/4dd20ff8 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/4dd20ff8 Branch: refs/heads/trunk Commit: 4dd20ff80bba5de512923ad9f9fb92821b38efca Parents: 2b298b7 Author: Rick van de Loo Authored: Sun Mar 4 14:51:42 2018 +0100 Committer: Quentin Pradet Committed: Fri Mar 9 08:51:41 2018 +0400 ---------------------------------------------------------------------- libcloud/test/compute/test_openstack.py | 6 ------ 1 file changed, 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/4dd20ff8/libcloud/test/compute/test_openstack.py ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/test_openstack.py b/libcloud/test/compute/test_openstack.py index e9d9315..54606ef 100644 --- a/libcloud/test/compute/test_openstack.py +++ b/libcloud/test/compute/test_openstack.py @@ -2050,8 +2050,6 @@ class OpenStack_1_1_MockHttp(MockHttp, unittest.TestCase): else: raise NotImplementedError() - return (httplib.OK, body, self.json_content_headers, httplib.responses[httplib.OK]) - def _v1_1_slug_os_networks(self, method, url, body, headers): if method == 'GET': body = self.fixtures.load('_os_networks.json') @@ -2074,8 +2072,6 @@ class OpenStack_1_1_MockHttp(MockHttp, unittest.TestCase): else: raise NotImplementedError() - return (httplib.OK, body, self.json_content_headers, httplib.responses[httplib.OK]) - def _v1_1_slug_servers_12063_action(self, method, url, body, headers): if method == 'POST': body = self.fixtures.load('_servers_unpause.json') @@ -2083,8 +2079,6 @@ class OpenStack_1_1_MockHttp(MockHttp, unittest.TestCase): else: raise NotImplementedError() - return (httplib.OK, body, self.json_content_headers, httplib.responses[httplib.OK]) - def _v1_1_slug_servers_12086_action(self, method, url, body, headers): if method == 'POST': body = self.fixtures.load('_servers_12086_console_output.json')