OS/2 EMX behaves like Windows where file permissions are concerned

This commit is contained in:
Andrew MacIntyre 2002-08-18 06:47:19 +00:00
parent 1adbcebbec
commit 1d0eeec279
1 changed files with 2 additions and 2 deletions

View File

@ -254,7 +254,7 @@ class test__mkstemp_inner(TC):
file = self.do_create() file = self.do_create()
mode = stat.S_IMODE(os.stat(file.name).st_mode) mode = stat.S_IMODE(os.stat(file.name).st_mode)
expected = 0600 expected = 0600
if sys.platform in ('win32',): if sys.platform in ('win32', 'os2emx'):
# There's no distinction among 'user', 'group' and 'world'; # There's no distinction among 'user', 'group' and 'world';
# replicate the 'user' bits. # replicate the 'user' bits.
user = expected >> 6 user = expected >> 6
@ -458,7 +458,7 @@ class test_mkdtemp(TC):
try: try:
mode = stat.S_IMODE(os.stat(dir).st_mode) mode = stat.S_IMODE(os.stat(dir).st_mode)
expected = 0700 expected = 0700
if sys.platform in ('win32',): if sys.platform in ('win32', 'os2emx'):
# There's no distinction among 'user', 'group' and 'world'; # There's no distinction among 'user', 'group' and 'world';
# replicate the 'user' bits. # replicate the 'user' bits.
user = expected >> 6 user = expected >> 6