mirror of
https://github.com/python/cpython.git
synced 2025-12-10 02:50:09 +00:00
#16135: Removal of OS/2 support (Python code partial cleanup)
This commit is contained in:
parent
f1af705720
commit
4791a24268
11 changed files with 20 additions and 89 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue