Skip to content

Commit

Permalink
Merge "Use skipTest from testtools instead of inherited Exception"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Oct 9, 2014
2 parents c37cecb + 5ecff28 commit 83ca0b8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions swiftclient/exceptions.py
Expand Up @@ -66,7 +66,3 @@ def __str__(self):
b += ' [first 60 chars of response] %s' \
% self.http_response_content[:60]
return b and '%s: %s' % (a, b) or a


class SkipTest(Exception):
pass
3 changes: 1 addition & 2 deletions tests/functional/test_swiftclient.py
Expand Up @@ -70,8 +70,7 @@ def _get_config(self):
def setUp(self):
super(TestFunctional, self).setUp()
if self.skip_tests:
raise swiftclient.exceptions.SkipTest(
'SKIPPING FUNCTIONAL TESTS DUE TO NO CONFIG')
self.skipTest('SKIPPING FUNCTIONAL TESTS DUE TO NO CONFIG')

self.conn = swiftclient.Connection(
self.auth_url, self.account_username, self.password,
Expand Down

0 comments on commit 83ca0b8

Please sign in to comment.