diff --git a/Dockerfile.test b/Dockerfile.test
index 2a9e55cc..484d02f5 100644
--- a/Dockerfile.test
+++ b/Dockerfile.test
@@ -13,7 +13,6 @@ RUN dnf -y install \
python3-gevent \
python3-magic \
python3-mako \
- python3-mock \
python3-pocketlint \
python3-pycdlib \
python3-pylint \
diff --git a/tests/pylorax/test_recipes.py b/tests/pylorax/test_recipes.py
index 835b3304..24c190d1 100644
--- a/tests/pylorax/test_recipes.py
+++ b/tests/pylorax/test_recipes.py
@@ -15,10 +15,10 @@
# along with this program. If not, see .
#
import os
-import mock
import shutil
import tempfile
import unittest
+from unittest import mock
import pylorax.api.recipes as recipes
from pylorax.api.compose import add_customizations, customize_ks_template
diff --git a/tests/pylorax/test_workspace.py b/tests/pylorax/test_workspace.py
index c6b950ba..7f8517fe 100644
--- a/tests/pylorax/test_workspace.py
+++ b/tests/pylorax/test_workspace.py
@@ -15,10 +15,10 @@
# along with this program. If not, see .
#
import os
-import mock
import shutil
import tempfile
import unittest
+from unittest import mock
import pylorax.api.recipes as recipes
from pylorax.api.workspace import workspace_dir, workspace_read, workspace_write, workspace_delete