diff --git a/tests/unit_tests/formats_tests/selinux_test.py b/tests/unit_tests/formats_tests/selinux_test.py index 484e745a4..ea2f516be 100644 --- a/tests/unit_tests/formats_tests/selinux_test.py +++ b/tests/unit_tests/formats_tests/selinux_test.py @@ -23,6 +23,7 @@ def setUp(self): @patch("blivet.tasks.fsmount.BlockDev.fs.mount", return_value=True) @patch.object(fs.FS, "_pre_setup", return_value=True) @patch("os.access", return_value=True) + @patch("os.path.isdir", return_value=True) # pylint: disable=unused-argument def exec_mount_selinux_format(self, formt, *args): """ Test of correct selinux context parameter value when mounting """