mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
The mode that we fake from stat is checked more closely under python3.5 on El Capitan (#17794)
Python2 seems to allow any integer. Python3.5 on Linux seems to allow a 32 bit unsigned int. Python3.5 on El Capitan seems to limit it to a smaller size... perhaps a 16 bit int.
This commit is contained in:
@@ -1032,5 +1032,5 @@ class TestModuleUtilsBasic(ModuleTestCase):
|
|||||||
self.assertEqual(am._symbolic_mode_to_octal(mock_stat, 'u=rwx'), 0o0700)
|
self.assertEqual(am._symbolic_mode_to_octal(mock_stat, 'u=rwx'), 0o0700)
|
||||||
|
|
||||||
# invalid modes
|
# invalid modes
|
||||||
mock_stat.st_mode = 0o0400000
|
mock_stat.st_mode = 0o040000
|
||||||
self.assertRaises(ValueError, am._symbolic_mode_to_octal, mock_stat, 'a=foo')
|
self.assertRaises(ValueError, am._symbolic_mode_to_octal, mock_stat, 'a=foo')
|
||||||
|
|||||||
Reference in New Issue
Block a user