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
3a2b97e4
Commit
3a2b97e4
authored
Aug 08, 2012
by
Ned Deily
Browse files
Options
Browse Files
Download
Plain Diff
Issue #14992: merge from 3.2
parents
3cc635da
c622f425
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 @
3a2b97e4
...
...
@@ -863,7 +863,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
PermissionError
:
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