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:
Toshio Kuratomi 2016-09-28 08:24:28 -07:00 committed by GitHub
parent fb0ec5895a
commit efa78b4ff4

View file

@ -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')