diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-03-31 11:34:49 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-03-31 11:34:49 -0700 |
commit | 4e7bc75432d366eb32190d8a9e9582be564fbace (patch) | |
tree | 7cc9a99662fda3a45c83a2915422ea8db5e69bc3 /tests/test_swiftclient.py | |
parent | 21db1bf83670f284b8f3d1dab4dc2be548ffb57e (diff) | |
download | python-swiftclient-4e7bc75432d366eb32190d8a9e9582be564fbace.tar.gz |
Use the standard library's copy of mock when it's available.
Change-Id: Id6a31157582efe47cc3a74e6658679c2bec14767
Diffstat (limited to 'tests/test_swiftclient.py')
-rw-r--r-- | tests/test_swiftclient.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_swiftclient.py b/tests/test_swiftclient.py index 21fec10..0667c10 100644 --- a/tests/test_swiftclient.py +++ b/tests/test_swiftclient.py @@ -14,8 +14,13 @@ # limitations under the License. # TODO: More tests -import mock import logging + +try: + from unittest import mock +except ImportError: + import mock + import six import socket import testtools |