mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Skip the permissions test on Windows which doesn't support Unix style file permissions.
This commit is contained in:
parent
d96f453e7f
commit
2ef71cf749
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user