未验证 提交 6c9fb563 编写于 作者: C Cleber Rosa

selftests/unit/test_utils_process.py: syntax fix for skipUnless

Commit 33517beb has a syntax
failure because reason is a mandatory argument.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 ed308af4
......@@ -172,7 +172,8 @@ class TestProcessRun(unittest.TestCase):
p = process.run(cmd='ls -l', ignore_status=True)
self.assertEqual(p.command, expected_command)
@unittest.skipUnless(os.path.exists('/bin/sudo'))
@unittest.skipUnless(os.path.exists('/bin/sudo'),
"/bin/sudo not available")
@mock.patch.object(path, 'find_command',
mock.Mock(return_value='/bin/sudo'))
@mock.patch.object(os, 'getuid', mock.Mock(return_value=1000))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册