Removing unnecessary pass instructions

There are some files in Tempest where code has unnecessary
pass instructions. This CR fixes that.

Change-Id: Ie32399d731edad8a4d0b9cdec8aa7e9444eda254
This commit is contained in:
Yaroslav Lobankov 2014-05-06 14:08:15 +04:00
parent 38adb4b152
commit 4693783f7e
3 changed files with 0 additions and 10 deletions

View File

@ -173,7 +173,6 @@ class BaseComputeTest(tempest.test.BaseTestCase):
pass
except Exception:
LOG.exception('Exception raised deleting image %s' % image_id)
pass
@classmethod
def clear_security_groups(cls):
@ -188,7 +187,6 @@ class BaseComputeTest(tempest.test.BaseTestCase):
LOG.info('Exception raised deleting security group %s',
sg['id'])
LOG.exception(exc)
pass
@classmethod
def tearDownClass(cls):
@ -320,7 +318,6 @@ class BaseComputeTest(tempest.test.BaseTestCase):
cls.servers_client.wait_for_server_termination(server_id)
except Exception:
LOG.exception('Failed to delete server %s' % server_id)
pass
resp, server = cls.create_test_server(wait_until='ACTIVE', **kwargs)
if cls._api_version == 2:
cls.password = server['adminPass']

View File

@ -404,7 +404,6 @@ class IsolatedCreds(object):
except exceptions.NotFound:
LOG.warn('router with name: %s not found for delete' %
router_name)
pass
def _clear_isolated_subnet(self, subnet_id, subnet_name):
net_client = self.network_admin_client
@ -413,7 +412,6 @@ class IsolatedCreds(object):
except exceptions.NotFound:
LOG.warn('subnet with name: %s not found for delete' %
subnet_name)
pass
def _clear_isolated_network(self, network_id, network_name):
net_client = self.network_admin_client
@ -422,7 +420,6 @@ class IsolatedCreds(object):
except exceptions.NotFound:
LOG.warn('network with name: %s not found for delete' %
network_name)
pass
def _cleanup_ports(self, network_id):
# TODO(mlavalle) This method will be removed once patch
@ -468,7 +465,6 @@ class IsolatedCreds(object):
except exceptions.NotFound:
LOG.warn('router with name: %s not found for delete' %
router['name'])
pass
self._clear_isolated_router(router['id'], router['name'])
if (not self.network_resources or
self.network_resources.get('network')):
@ -492,10 +488,8 @@ class IsolatedCreds(object):
except exceptions.NotFound:
LOG.warn("user with name: %s not found for delete" %
creds.username)
pass
try:
self._delete_tenant(creds.tenant_id)
except exceptions.NotFound:
LOG.warn("tenant with name: %s not found for delete" %
creds.tenant_name)
pass

View File

@ -101,7 +101,6 @@ class InstallVenv(object):
print('done.')
else:
print("venv already exists...")
pass
def pip_install(self, *args):
self.run_command(['tools/with_venv.sh',