From 3429e57825a2323285a76baa6207bf6a1e6a8f5c Mon Sep 17 00:00:00 2001 From: David Wilson Date: Fri, 26 Oct 2018 13:04:00 +0100 Subject: [PATCH] tests: fix target_test 3.x compat. --- tests/ansible/tests/target_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ansible/tests/target_test.py b/tests/ansible/tests/target_test.py index e3d59433..7d6c0b46 100644 --- a/tests/ansible/tests/target_test.py +++ b/tests/ansible/tests/target_test.py @@ -28,10 +28,10 @@ class ApplyModeSpecTest(unittest2.TestCase): def test_simple(self): spec = 'u+rwx,go=x' - self.assertEquals(0711, self.func(spec, 0)) + self.assertEquals(int('0711', 8), self.func(spec, 0)) spec = 'g-rw' - self.assertEquals(0717, self.func(spec, 0777)) + self.assertEquals(int('0717', 8), self.func(spec, int('0777', 8))) class IsGoodTempDirTest(unittest2.TestCase):