diff options
author | Jesus Cea <jcea@jcea.es> | 2012-10-05 01:15:39 (GMT) |
---|---|---|
committer | Jesus Cea <jcea@jcea.es> | 2012-10-05 01:15:39 (GMT) |
commit | 4791a242688167ffc4abb3b9f42d6cd9e877652e (patch) | |
tree | 62a566c811ae808f9dd7a7aa10e655d4d3aad56b /Lib/test/test_tempfile.py | |
parent | f1af7057208da7b3d15703645688fea971a4fb5e (diff) | |
download | cpython-4791a242688167ffc4abb3b9f42d6cd9e877652e.zip cpython-4791a242688167ffc4abb3b9f42d6cd9e877652e.tar.gz cpython-4791a242688167ffc4abb3b9f42d6cd9e877652e.tar.bz2 |
#16135: Removal of OS/2 support (Python code partial cleanup)
Diffstat (limited to 'Lib/test/test_tempfile.py')
-rw-r--r-- | Lib/test/test_tempfile.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py index d79f319..8d161d9 100644 --- a/Lib/test/test_tempfile.py +++ b/Lib/test/test_tempfile.py @@ -276,7 +276,7 @@ class TestMkstempInner(BaseTestCase): file = self.do_create() mode = stat.S_IMODE(os.stat(file.name).st_mode) expected = 0o600 - if sys.platform in ('win32', 'os2emx'): + if sys.platform == 'win32': # There's no distinction among 'user', 'group' and 'world'; # replicate the 'user' bits. user = expected >> 6 @@ -310,7 +310,7 @@ class TestMkstempInner(BaseTestCase): # On Windows a spawn* /path/ with embedded spaces shouldn't be quoted, # but an arg with embedded spaces should be decorated with double # quotes on each end - if sys.platform in ('win32',): + if sys.platform == 'win32': decorated = '"%s"' % sys.executable tester = '"%s"' % tester else: @@ -479,7 +479,7 @@ class TestMkdtemp(BaseTestCase): mode = stat.S_IMODE(os.stat(dir).st_mode) mode &= 0o777 # Mask off sticky bits inherited from /tmp expected = 0o700 - if sys.platform in ('win32', 'os2emx'): + if sys.platform == 'win32': # There's no distinction among 'user', 'group' and 'world'; # replicate the 'user' bits. user = expected >> 6 |