summaryrefslogtreecommitdiff
path: root/pbr/tests/test_packaging.py
diff options
context:
space:
mode:
Diffstat (limited to 'pbr/tests/test_packaging.py')
-rw-r--r--pbr/tests/test_packaging.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pbr/tests/test_packaging.py b/pbr/tests/test_packaging.py
index 7735053..236c5e1 100644
--- a/pbr/tests/test_packaging.py
+++ b/pbr/tests/test_packaging.py
@@ -48,7 +48,10 @@ import tempfile
import textwrap
import fixtures
-import mock
+try:
+ from unittest import mock
+except ImportError:
+ import mock
import pkg_resources
import six
import testscenarios