summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>2002-08-18 06:47:19 (GMT)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>2002-08-18 06:47:19 (GMT)
commit1d0eeec279ad9b4f45c3fca667078ba8affa7bd8 (patch)
treec5c1427c9e94f75d5f33da36067324329106ff63 /Lib
parent1adbcebbeca87964079b69a8772caab2e9b6c00d (diff)
downloadcpython-1d0eeec279ad9b4f45c3fca667078ba8affa7bd8.zip
cpython-1d0eeec279ad9b4f45c3fca667078ba8affa7bd8.tar.gz
cpython-1d0eeec279ad9b4f45c3fca667078ba8affa7bd8.tar.bz2
OS/2 EMX behaves like Windows where file permissions are concerned
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_tempfile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py
index 10426b3..2b61bce 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