]> granicus.if.org Git - python/commitdiff
OS/2 EMX behaves like Windows where file permissions are concerned
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>
Sun, 18 Aug 2002 06:47:19 +0000 (06:47 +0000)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>
Sun, 18 Aug 2002 06:47:19 +0000 (06:47 +0000)
Lib/test/test_tempfile.py

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