summaryrefslogtreecommitdiff
path: root/tests/unittests/test_handler/test_handler_spacewalk.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unittests/test_handler/test_handler_spacewalk.py')
-rw-r--r--tests/unittests/test_handler/test_handler_spacewalk.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/unittests/test_handler/test_handler_spacewalk.py b/tests/unittests/test_handler/test_handler_spacewalk.py
index ddbf4a79..410e6f77 100644
--- a/tests/unittests/test_handler/test_handler_spacewalk.py
+++ b/tests/unittests/test_handler/test_handler_spacewalk.py
@@ -6,11 +6,7 @@ from cloudinit import util
from cloudinit.tests import helpers
import logging
-
-try:
- from unittest import mock
-except ImportError:
- import mock
+from unittest import mock
LOG = logging.getLogger(__name__)