Merge lp://staging/~cthier/swift/skipswift3tests into lp://staging/~hudson-openstack/swift/trunk
Proposed by
Chuck Thier
Status: | Merged |
---|---|
Approved by: | gholt |
Approved revision: | 231 |
Merged at revision: | 230 |
Proposed branch: | lp://staging/~cthier/swift/skipswift3tests |
Merge into: | lp://staging/~hudson-openstack/swift/trunk |
Diff against target: | 0 lines |
To merge this branch: | bzr merge lp://staging/~cthier/swift/skipswift3tests |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
gholt (community) | Approve | ||
Review via email: mp+52132@code.staging.launchpad.net |
Description of the change
Skip the swift3 middleware tests if boto is not installed (since it is an optional component)
To post a comment you must log in.
=== modified file 'test/unit/ common/ middleware/ test_swift3. py' common/ middleware/ test_swift3. py 2011-03-03 20:34:48 +0000 common/ middleware/ test_swift3. py 2011-03-03 20:44:04 +0000
--- test/unit/
+++ test/unit/
@@ -24,11 +24,11 @@
import simplejson
from nose.plugins.skip import SkipTest
-from swift.common. middleware import swift3
try: middleware import swift3
import boto.s3
skip = False
+ from swift.common.
except Exception:
# Skip the swift3 tests if boto is not installed
skip = True