summaryrefslogtreecommitdiffstats
path: root/tests/python
diff options
context:
space:
mode:
Diffstat (limited to 'tests/python')
-rw-r--r--tests/python/test_authority.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/python/test_authority.py b/tests/python/test_authority.py
index b25816c23..e55b9c82d 100644
--- a/tests/python/test_authority.py
+++ b/tests/python/test_authority.py
@@ -19,7 +19,10 @@
# All rights reserved.
#
-import mock
+try:
+ from unittest import mock
+except ImportError:
+ import mock
import unittest
import uuid