summaryrefslogtreecommitdiff
path: root/pbr/tests/test_pbr_json.py
diff options
context:
space:
mode:
Diffstat (limited to 'pbr/tests/test_pbr_json.py')
-rw-r--r--pbr/tests/test_pbr_json.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pbr/tests/test_pbr_json.py b/pbr/tests/test_pbr_json.py
index f066971..eb9a08a 100644
--- a/pbr/tests/test_pbr_json.py
+++ b/pbr/tests/test_pbr_json.py
@@ -10,7 +10,10 @@
# License for the specific language governing permissions and limitations
# under the License.
-import mock
+try:
+ from unittest import mock
+except ImportError:
+ import mock
from pbr import pbr_json
from pbr.tests import base