tanminhnu / python-gflags

Automatically exported from code.google.com/p/python-gflags
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Test for permission errors fails as root #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When running unit tests as root (i.e. as part of a install process that runs as 
root) one test fails because root can still read files with 0 for permissions. 
Attached is a pretty trivial way to skip the test that is compatible with any 
version of python. A fancier way in >= 2.7 would be to call self.skipTest().

Original issue reported on code.google.com by marin...@gmail.com on 28 Jun 2013 at 6:37

Attachments: