umask test also needs to use different octal syntax

Related to #1414
This commit is contained in:
Gina Häußge 2016-07-15 12:37:11 +02:00
parent dc874d98ac
commit 7ed1f4cb9e

View file

@ -52,7 +52,7 @@ class DaemonTest(unittest.TestCase):
self.assertListEqual(mock_exit.mock_calls, [mock.call(0), mock.call(0)])
mock_chdir.assert_called_once_with("/")
mock_setsid.assert_called_once_with()
mock_umask.assert_called_once_with(002)
mock_umask.assert_called_once_with(0o002)
@mock.patch("os.fork", create=True)
@mock.patch("sys.exit")