From 1fa5e059a4d2fc118e798d0fe1e185894aebe0c6 Mon Sep 17 00:00:00 2001 From: Ronald Oussoren Date: Sun, 1 Aug 2010 18:46:05 +0000 Subject: [PATCH] A raise of unittest.SkipTest leaked through in the backport for issue7900, and that causes test failes on some platforms. --- Lib/test/test_posix.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index 4c0d53ac05a..195df2654c4 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.