diff --git a/selftests/unit/test_utils_partition.py b/selftests/unit/test_utils_partition.py index 7668045799a7d6c66b26247abaf1253651f5e357..8efad11daa643dcc64d8f4daa8ad6d2a9cbeb183 100644 --- a/selftests/unit/test_utils_partition.py +++ b/selftests/unit/test_utils_partition.py @@ -33,7 +33,7 @@ def cannot_sudo(command): try: process.run(command, sudo=True) False - except process.CmdError: + except (process.CmdError, OSError): return True