Skip the permissions test on Windows which doesn't support Unix style file permissions.

This commit is contained in:
Dave Page 2019-04-18 09:12:40 +01:00
parent d96f453e7f
commit 2ef71cf749

View File

@ -29,6 +29,11 @@ class PermissionsTestCase(BaseTestGenerator):
permissions='700'))
]
def before(self):
if os.name == 'nt':
self.skipTest("This test is skipped on Windows which doesn't "
"Unix style file permissions.")
def runTest(self):
self.assertTrue(
oct(os.stat(self.path)[ST_MODE])[-3:] == self.permissions