From: Andrew MacIntyre Date: Sun, 18 Aug 2002 06:47:19 +0000 (+0000) Subject: OS/2 EMX behaves like Windows where file permissions are concerned X-Git-Tag: v2.3c1~4417 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1d0eeec279ad9b4f45c3fca667078ba8affa7bd8;p=python OS/2 EMX behaves like Windows where file permissions are concerned --- diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py index 10426b3bc8..2b61bce99c 100644 --- a/Lib/test/test_tempfile.py +++ b/Lib/test/test_tempfile.py @@ -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