summaryrefslogtreecommitdiff
path: root/tests/test_command_helpers.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-03-31 11:34:49 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-03-31 11:34:49 -0700
commit4e7bc75432d366eb32190d8a9e9582be564fbace (patch)
tree7cc9a99662fda3a45c83a2915422ea8db5e69bc3 /tests/test_command_helpers.py
parent21db1bf83670f284b8f3d1dab4dc2be548ffb57e (diff)
downloadpython-swiftclient-4e7bc75432d366eb32190d8a9e9582be564fbace.tar.gz
Use the standard library's copy of mock when it's available.
Change-Id: Id6a31157582efe47cc3a74e6658679c2bec14767
Diffstat (limited to 'tests/test_command_helpers.py')
-rw-r--r--tests/test_command_helpers.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_command_helpers.py b/tests/test_command_helpers.py
index 140e915..af81601 100644
--- a/tests/test_command_helpers.py
+++ b/tests/test_command_helpers.py
@@ -13,8 +13,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+try:
+ from unittest import mock
+except ImportError:
+ import mock
+
from six import StringIO
-import mock
import testtools
from swiftclient import command_helpers as h