mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02: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:
parent
fb0ec5895a
commit
efa78b4ff4
1 changed files with 1 additions and 1 deletions
|
@ -1032,5 +1032,5 @@ class TestModuleUtilsBasic(ModuleTestCase):
|
|||
self.assertEqual(am._symbolic_mode_to_octal(mock_stat, 'u=rwx'), 0o0700)
|
||||
|
||||
# invalid modes
|
||||
mock_stat.st_mode = 0o0400000
|
||||
mock_stat.st_mode = 0o040000
|
||||
self.assertRaises(ValueError, am._symbolic_mode_to_octal, mock_stat, 'a=foo')
|
||||
|
|
Loading…
Reference in a new issue