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.
pull/13687/merge
Toshio Kuratomi 8 years ago committed by GitHub
parent fb0ec5895a
commit efa78b4ff4

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

Loading…
Cancel
Save