Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a00a274d
Commit
a00a274d
authored
Aug 08, 2012
by
Ned Deily
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #14992: Prevent test_os test_exist_ok_s_isgid_directory test case
failure on OS X built with 10.4 ABI.
parent
69951691
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
Lib/test/test_os.py
Lib/test/test_os.py
+4
-1
No files found.
Lib/test/test_os.py
View file @
a00a274d
...
...
@@ -592,7 +592,10 @@ class MakedirTests(unittest.TestCase):
try
:
existing_testfn_mode
=
stat
.
S_IMODE
(
os
.
lstat
(
support
.
TESTFN
).
st_mode
)
os
.
chmod
(
support
.
TESTFN
,
existing_testfn_mode
|
S_ISGID
)
try
:
os
.
chmod
(
support
.
TESTFN
,
existing_testfn_mode
|
S_ISGID
)
except
OSError
:
raise
unittest
.
SkipTest
(
'Cannot set S_ISGID for dir.'
)
if
(
os
.
lstat
(
support
.
TESTFN
).
st_mode
&
S_ISGID
!=
S_ISGID
):
raise
unittest
.
SkipTest
(
'No support for S_ISGID dir mode.'
)
# The os should apply S_ISGID from the parent dir for us, but
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment