From 7ed1f4cb9e2d5db954ceb166f272726a29a8d3a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 15 Jul 2016 12:37:11 +0200 Subject: [PATCH] umask test also needs to use different octal syntax Related to #1414 --- tests/test_daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_daemon.py b/tests/test_daemon.py index 8917cf47..60b1747a 100644 --- a/tests/test_daemon.py +++ b/tests/test_daemon.py @@ -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")