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
318b8f35
Commit
318b8f35
authored
Jan 12, 2011
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #10822: Fix test_posix:test_getgroups failure under Solaris. Patch
by Ross Lagerwall.
parent
287d1fdd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
Lib/test/test_posix.py
Lib/test/test_posix.py
+4
-1
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_posix.py
View file @
318b8f35
...
...
@@ -373,6 +373,7 @@ class PosixTester(unittest.TestCase):
os
.
chdir
(
curdir
)
support
.
rmtree
(
base_path
)
@
unittest
.
skipUnless
(
hasattr
(
os
,
'getegid'
),
"test needs os.getegid()"
)
def
test_getgroups
(
self
):
with
os
.
popen
(
'id -G'
)
as
idg
:
groups
=
idg
.
read
().
strip
()
...
...
@@ -382,9 +383,11 @@ class PosixTester(unittest.TestCase):
# 'id -G' and 'os.getgroups()' should return the same
# groups, ignoring order and duplicates.
# #10822 - it is implementation defined whether posix.getgroups()
# includes the effective gid so we include it anyway, since id -G does
self
.
assertEqual
(
set
([
int
(
x
)
for
x
in
groups
.
split
()]),
set
(
posix
.
getgroups
()))
set
(
posix
.
getgroups
()
+
[
posix
.
getegid
()]
))
class
PosixGroupsTester
(
unittest
.
TestCase
):
...
...
Misc/NEWS
View file @
318b8f35
...
...
@@ -223,6 +223,9 @@ Tools/Demos
Tests
-----
- Issue #10822: Fix test_posix:test_getgroups failure under Solaris. Patch
by Ross Lagerwall.
- Make the --coverage flag work for test.regrtest.
- Issue #1677694: Refactor and improve test_timeout. Original patch by
...
...
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