summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2010-08-01 18:46:05 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2010-08-01 18:46:05 (GMT)
commit1fa5e059a4d2fc118e798d0fe1e185894aebe0c6 (patch)
treec99897874fbf89ce75a84fd7e8f589af9ff8dc64 /Lib
parent9e291faed308c3e17d7c83980bf745472d303e77 (diff)
downloadcpython-1fa5e059a4d2fc118e798d0fe1e185894aebe0c6.zip
cpython-1fa5e059a4d2fc118e798d0fe1e185894aebe0c6.tar.gz
cpython-1fa5e059a4d2fc118e798d0fe1e185894aebe0c6.tar.bz2
A raise of unittest.SkipTest leaked through in the backport for issue7900,
and that causes test failes on some platforms.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_posix.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index 4c0d53a..195df26 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -308,11 +308,12 @@ class PosixTester(unittest.TestCase):
shutil.rmtree(base_path)
def test_getgroups(self):
- with os.popen('id -G') as idg:
+ with os.popen('id -G 2>/dev/null') as idg:
groups = idg.read().strip()
if not groups:
- raise unittest.SkipTest("need working 'id -G'")
+ # This test needs 'id -G'
+ return
# The order of groups isn't important, hence the calls
# to sorted.